nuklearwanze
Posts: 2
Joined: Sat Dec 18, 2021 4:01 pm

Orbit Package of Astro Pi

Sat Dec 18, 2021 4:05 pm

Phase 2 guide states, that there's a package called "orbit" included in the FlightOS version shipped with Astro Pi. As we don't yet have got our Astro Pi - but still want to work on our project - we wanted to install said package, but couldn't find it anywhere...

there are a few orbit related packages available, but none use the syntax or have classes defined like in the astro pi code examples.

does anyone know where we can get that orbit package (the one working with skyfield to create an ISS object)

User avatar
DougieLawson
Posts: 42155
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Orbit Package of Astro Pi

Sun Dec 19, 2021 10:27 am

Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

nuklearwanze
Posts: 2
Joined: Sat Dec 18, 2021 4:01 pm

Re: Orbit Package of Astro Pi

Sun Dec 19, 2021 11:20 am

the "orbit" package doesn't seem to be part of "sense-hat", and it isn't included in "skyfield" either.

the code example uses it like this

Code: Select all

from orbit import ISS
from skyfield.api import load

t = load.timescale().now()
position = ISS.at(t)
location = position.subpoint()
print(location)
but that fails, as it can't find the "orbit" package and we haven't found any way to install it from any repository.

_G!_
Posts: 1
Joined: Sat Jan 15, 2022 9:57 pm

Re: Orbit Package of Astro Pi

Sat Jan 15, 2022 10:21 pm

The orbit Package is included in the flight OS, so you can use it on the ESA raspberry pi.

You must search the orbit folder on your flight os. I have copied it, so my students can use now orbit on a Windows System.

https://github.com/0Pyonier1/G-_in_Spac ... i/issues/1

ulugeyik
Posts: 8
Joined: Wed Feb 21, 2018 1:01 pm

Re: Orbit Package of Astro Pi

Thu Jan 20, 2022 2:58 pm

_G!_ wrote:
Sat Jan 15, 2022 10:21 pm
The orbit Package is included in the flight OS, so you can use it on the ESA raspberry pi.

You must search the orbit folder on your flight os. I have copied it, so my students can use now orbit on a Windows System.

https://github.com/0Pyonier1/G-_in_Spac ... i/issues/1
Thank you! This clarifies a lot of things. In particular, it allows us to follow the Phase 2 Guide (link below) on computers that are not with the flight OS pre-loaded.

Just for newbies like myself, your files should be saved in a folder "orbit" within the current path to function. Gpiozero and other libraries are needed.

Phase 2 Guide:
https://projects.raspberrypi.org/en/pro ... periment/4

PS2: I have removed my previous post since I have solved the problem.

Return to “Astro Pi”