Skip to content

[WIP] Set GPS to stationary mode when fixed position is enabled #6630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fifieldt
Copy link
Member

@fifieldt fifieldt commented Apr 19, 2025

untested WIP - this code may never run, need to check where GPS setup bails out due to fixed_position config.

As reported by @RCGV1, some GPS chips have a "stationary" mode, which assumes acceleration and velocity are zero. For fixed nodes, taking advantage of this configuration means potentially less power usage, and a more accurate position that doesn't jitter its way around the map. (See also: #3984 )

This patch makes changes to the setup code for the the GNSS_MODEL_MTK, GNSS_MODEL_MTK_L76B, GNSS_MODEL_ATGM336H, GNSS_MODEL_AG3335, GNSS_MODEL_AG3352 to apply that approach.

The aim would be to enable this mode when users have a GPS enabled and select "Fixed Position" without specifying coordinates. UX TBD!

Fixes #6627

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)

untested WIP - this code may never run, need to check where GPS setup
bails out due to fixed_position config.

As repoted by @RCGV1, some GPS chips have a "stationary" mode,
which assumes acceleration and velocity are zero. For fixed nodes,
taking advantage of this configuration means potentially less power
usage, and a more accurate position that doesn't jitter its way around
the map. (See also: meshtastic#3984 )

The aim would be to enable this mode when users have a GPS enabled and
select "Fixed Position" without specifying coordinates. UX TBD!

Fixes meshtastic#6627
@fifieldt fifieldt marked this pull request as draft April 19, 2025 03:42
@garthvh
Copy link
Member

garthvh commented Apr 19, 2025

Fixed position does not generally use the gps at all, I would suggest the stationary mode should not need any UX at all and instead not use power or generate positions all over the place when the gps detects it is stationary. For this to be done well it should reduce the positions sent over the mesh, save power and not require any more position settings as there are already far too many.

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.

[Feature Request]: Stationary GPS mode when fixed position is enabled
3 participants