I’ve recently purchased the SparkFun GPS Breakout - NEO-M9N, SMA (Qwiic) SparkFun_u-blox_GNSS_Arduino_Library.
I’m using a Mega 2560. I’m only calling begin() in setup() then in loop() I call getGroundSpeed() and getSIV() and loop will stall 500ms. I only need the current ground speed and number of sats but I need it to return within 20ms if possible. Is there a setting or a different library I can use to strip down the delay?
Unfortunately the GNSS modules do not work that way. They calculate position once per second (unless you change the navigation rate). The stall could be up to one second depending on when you request the position.
You can use the “auto” feature in the u-blox library. This will return data immediately, but it might be ‘stale’ by up to one second. Please see: