Log In  
Follow
mcneja
[ :: Read More :: ]

Cart #51245 | 2018-04-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Super simple solar system. Left/right to adjust time, up/down to adjust zoom.

This is a port of an orrery I wrote in C++ back in 2003 or so. It was fun trying to cram it into the Pico-8, with its limited numeric precision.

Printing the date proved to be more of a challenge than just about anything else. I haven't tried to write the reverse function yet (year/month/day to Julian day number) so the cartridge just starts up somewhere near the beginning of the current year.

Not recommended to plan horoscopes or Mars missions with this thing, but compare it with https://ssd.jpl.nasa.gov/?ss_inner or https://ssd.jpl.nasa.gov/?ss_outer, which is where I got the orbital elements from.

Putting a Lambert solver in so you could plan Mars missions (despite what I just said) would be a fun next step.

P#51247 2018-04-03 08:22 ( Edited 2018-04-10 05:03)

Follow Lexaloffle:          
Generated 2024-03-29 00:40:46 | 0.064s | Q:8