bolderflight / ublox

Arduino and CMake library for communicating with uBlox GPS receivers.
MIT License
102 stars 33 forks source link

Wake from sleep function #4

Open jacky4566 opened 6 years ago

jacky4566 commented 6 years ago

Could you program a clear fix function?

When waking a microprocessor and the Ublox from deep sleep (no millis) there is no way to determine if a fix is new or old. It would be easiest to clear the data before waking the GPS.

I may fork this and write the function myself. Stay tuned!

flybrianfly commented 6 years ago

Interesting suggestion. Probably would want to clear all of the data since it would no longer be valid. Let me think about the best API interface for this, should be easy enough to code.

jacky4566 commented 5 years ago

In my latest pull i have tweaked the begin function to clear out the latest packet. thusly when begin is called the library has no data. Fresh.