Skip to content
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

gps on banglejs2: report satellites before the fix #3097

Open
pavelmachek opened this issue Nov 14, 2023 · 1 comment
Open

gps on banglejs2: report satellites before the fix #3097

pavelmachek opened this issue Nov 14, 2023 · 1 comment
Labels
area-firmware type-enhancement New feature or request

Comments

@pavelmachek
Copy link
Contributor

Affected hardware version

Bangle 2

Your firmware version

2v19

The bug

GPS fix (as reported by Bangle.on('GPS', function(fix) { ... });) contains satellites field. Unfortunately it is only nonzero when we actually have a fix.

To provide some kind of feedback before fix is acquired, it would be nice to know number of satellites decoded even before we have the fix. (Currently such information is only available with gps-raw interface). There's big difference between "no fix, 6 sats decoded" -- which means "stay in place and wait a minute" and "no fix, 0 sats" which means "move under clear sky, can't get a fix here".

My proposal would be to report fix.satellites as number of satellites with known snr ratio when we don't have a fix, but other solutions are possible.

Installed apps

No response

@bobrippling
Copy link
Collaborator

Sounds like a nice idea, I expect it would be a firmware change although it looks like satellites is unconditionally set.

but perhaps we'd want to change code around here, which queues callbacks for the GPS events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-firmware type-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants