Home › Forums › Forums › Technical Support for BerryGPS and BerryGPS-IMU › Update rate resets after ~15 seconds › Reply To: Update rate resets after ~15 seconds
Maybe I’m chasing the wrong thing. I tried that command, and while it seems to “stick” for a bit longer, it actually doesn’t seem to help. I used https://ozzmaker.com/using-python-with-a-gps-receiver-on-a-raspberry-pi/ as a reference, and added some timing reports. Without having a time.sleep at all, the loop consistently reports the following for how long gpsd.next() takes:
~290 ms
~530 ms
~52ms
~35ms
~82ms
Adding to about 1000ms…like clockwork. I know there is some overhead in pulling from gpsd, but the pattern is just weird to me. Ultimately what I’m trying to achieve is running the GPS at 10hz, and being able to sample it with ~30ms response time at most.