Skip to content

Use truncated position for smart position#8906

Merged
thebentern merged 5 commits into
meshtastic:developfrom
RCGV1:optimize-smart-pos
Dec 11, 2025
Merged

Use truncated position for smart position#8906
thebentern merged 5 commits into
meshtastic:developfrom
RCGV1:optimize-smart-pos

Conversation

@RCGV1

@RCGV1 RCGV1 commented Dec 9, 2025

Copy link
Copy Markdown
Member

If we have imprecise location and smart position on lets not send smart position even if we move if our new position will get truncated to the previous position. We now take into account truncating when deciding the distance travelled for smart pos.
Tested by walking around and sending client notification if the moved distance is greater than the threshold but the truncated position isnt.

This is useful for reducing the amount of positions that are sent.
IMG_5186

🤝 Attestations

  • [ x ] 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
    • [ x ] RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)

@thebentern thebentern added the enhancement New feature or request label Dec 9, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/modules/PositionModule.cpp
Comment thread src/modules/PositionModule.cpp
@phaseloop

Copy link
Copy Markdown
Contributor

Just FYI as this may be another edge case but I'm not into GPS code in Meshtastic - GPS devices and phones also report DOP (dilution of precision) and we should not trigger smart position send if previous and new position are within uncertainty radius of GPS position.

I think someone a week ago reported here a situation when node with poor GPS reception "travels" constantly on a map and sends unnecesary position updates.

@thebentern thebentern merged commit fff2bbf into meshtastic:develop Dec 11, 2025
78 checks passed
scobert969 pushed a commit to zeropt/meshtastic-firmware that referenced this pull request Dec 22, 2025
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants