Skip to content

Conversation

awolden
Copy link
Contributor

@awolden awolden commented Sep 12, 2025

  • Adds configurable GPS duty cycling to EnviromentalSensorManager

@4np
Copy link

4np commented Sep 13, 2025

It would be nice if the polling interval could be variable, based on accelerometer values (for example 3-axis RAK1904 or 9-axis RAK12034).

If there's no accelerometer, default to 5 mins, and if there's an accelerometer and acceleration is detected then adjust the GPS update interval based on the acceleration rate.

@awolden
Copy link
Contributor Author

awolden commented Sep 13, 2025

@4np ya I considered adding some more sophistication to it, we could wait for a minimum accuracy, take an average over 3 readings, waiting for accelerometer values, I didn't want to try add too much too fast when some of this can be layered on. (plus I don't have an accelerometer to test with)

@4np
Copy link

4np commented Sep 14, 2025

Yeah makes sense, it probably deviates too far from the scope of the PR. Still something that would be nice to have on the roadmap at some point.

@fdlamotte
Copy link
Collaborator

As I've played a little with gps lately I think I'll handle this one ;) I think idea and implementation are good

@awolden have you considered implementing pwm in the LocationProvider instead of sensor manager ? I think it might make sense ...

For debugging, the new ui page I propose in #820 will be good, it shows sat count, fix status and coordinates as they come from nmea ...

I'll wait for #820 before going further, as it removes unnecessary duplicate code between sensor manager and location provider ;)

@awolden
Copy link
Contributor Author

awolden commented Sep 26, 2025

I can move it, will have time to do that soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants