-
Notifications
You must be signed in to change notification settings - Fork 217
Description
Right now the GPS is queried at 1 Hz, but this doesn’t really make sense.
If the GPS chip is powered, it’s always on and drawing current anyway — the extra 1 Hz read loop only wastes power without giving any benefit since there is no real live tracking anyway.
A much better approach is to avoid keeping GPS permanently active and instead use interval-based activation:
Interval updates
Example: Power up GPS once per minute (or every few minutes), get a fix, then power it back down.
Even a 1-minute interval would save a huge amount of energy compared to running continuously.
Motion-aware logic
If the motion sensor reports no movement, GPS can stay off.
Only when motion is detected, wake GPS and try to refresh the fix.
If no fix is possible (indoors, blocked sky), GPS should remain inactive until movement resumes, avoiding wasted retries.
This way we don’t burn battery with constant 1 Hz reads, but still get fresh enough location data when the node is actually moving or at least at regular intervals. If we agree, I can try to implement this for my boards that I have at home.