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)
-
- Posts: 2
- Joined: Sat Dec 18, 2021 4:01 pm
- 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
These are the current instructions https://projects.raspberrypi.org/en/pro ... -sense-hat
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.
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.
-
- Posts: 2
- Joined: Sat Dec 18, 2021 4:01 pm
Re: Orbit Package of Astro Pi
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
but that fails, as it can't find the "orbit" package and we haven't found any way to install it from any repository.
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)
Re: Orbit Package of Astro Pi
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
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
Re: Orbit Package of Astro Pi
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._G!_ wrote: ↑Sat Jan 15, 2022 10:21 pmThe 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
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.