TeamSunride / MRAS

Multi Rocket Avionics System
https://mras.sunride.space/
GNU General Public License v3.0
6 stars 0 forks source link

Finish GNSS subsystem implementation #21

Closed TomD53 closed 1 year ago

TomD53 commented 1 year ago
  1. Please finish implementing the GNSS subsystem [on different branch please]
  2. Ensure that AssistNow works reliably on startup
  3. Make sure that the log function is used in place of Serial.println()
  4. Prevent GNSS subsystem from blocking setup of other subsystems if startup with SD card fails
  5. Provide a python script that can be used to download the latest AssistNow data to the root directory for transfer to Teensy SD card (add data file to gitignore)

Any further things that need doing please comment here, this counts as an initial brainstorm

@robosam2003

robosam2003 commented 1 year ago

In order for the AssistNow code to operate properly, it needs an accurate unix timestamp to convert to GPS time (GPS week and GPS time of week(ms) ).

Currently getTimestampMillisGPS() set's the time to whatever the host computer's time is. This does not account for daylight savings or being in a different time zone.

This is maybe something we can make cleaner, but for now, we have to adjust this manually: setTime(t.tm_hour, t.tm_min, t.tm_sec, t.tm_mday, t.tm_mon + 1, t.tm_year + 1900);

robosam2003 commented 1 year ago

image Testing results: The program successfully replaces the timestamp part of the aiding file, using the current timestamp obtained from the Teensy's onboard RTC - confirmed by the fact that the GPS polled time is not the time that the mgaonline.ubx file was pulled from the Ublox server.

robosam2003 commented 1 year ago

image Testing results: The AssistNow process allows the module to get a simple fix in a matter of minutes indoors and without a ground plane - this is much better than results from a non-assisted module in the exact same conditions.

TomD53 commented 1 year ago

image This is blocking the setup (case where SD card isn't installed)

TomD53 commented 1 year ago

Another case where setup is getting blocked image

TomD53 commented 1 year ago

image @robosam2003 Is this file missing some code? Where can I get the file for AssistNow?

robosam2003 commented 1 year ago

image @robosam2003 Is this file missing some code? Where can I get the file for AssistNow?

Ahh I haven't shared my thingstream token yet - Not sure how private I have to keep that. - I'll DM you a string you can use