betaflight-configurator icon indicating copy to clipboard operation
betaflight-configurator copied to clipboard

Hide GPS Signal Strength if GPS is not active

Open haslinghuis opened this issue 1 year ago • 8 comments

Only show GPS Signal Strength when GPS is active.

Currently when having SatInfo and powering off the GPS configurator only shows last frozen state.

Resetting data won't show values - we can show an informational message like:

image

haslinghuis avatar Dec 29 '23 22:12 haslinghuis

Do you want to test this code? Here you have an automated build: Betaflight-Configurator-Android Betaflight-Configurator-Linux Betaflight-Configurator-macOS Betaflight-Configurator-Windows WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

github-actions[bot] avatar Dec 29 '23 22:12 github-actions[bot]

AUTOMERGE: (FAIL)

  • github identifies PR as mergeable -> FAIL
  • assigned to a milestone -> PASS
  • cooling off period lapsed -> PASS
  • commit count less or equal to three -> PASS
  • Don't merge label NOT found -> PASS
  • at least one RN: label found -> PASS
  • Tested label found -> FAIL
  • assigned to an approver -> PASS
  • approver count at least three -> FAIL

blckmn avatar Dec 29 '23 23:12 blckmn

Would it make more sense to re-initialize the values upon disconnect or GPS-not-powered state?

nerdCopter avatar Dec 31 '23 18:12 nerdCopter

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Dec 31 '23 22:12 sonarqubecloud[bot]

Do you want to test this code? Here you have an automated build: Betaflight-Configurator-Android Betaflight-Configurator-Linux Betaflight-Configurator-macOS Betaflight-Configurator-Windows WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

github-actions[bot] avatar Dec 31 '23 22:12 github-actions[bot]

looks good, but i have no real GPS to test.

nerdCopter avatar Jan 04 '24 15:01 nerdCopter

Do not want to make it to complicated. Thinking about it perhaps we should have a second message - but requires keeping state.

  1. At startup when no signal data has been received as GNSS has not been detected yet we show the message above.
  2. When loosing signal after being detected we show a message like
The GNSS unit is no longer recognized.

haslinghuis avatar Jan 04 '24 16:01 haslinghuis

This should probably be a 4.6 new feature. It is an improvement but could introduce unexpected issues, and will require testing that would delay 4.5.

ctzsnooze avatar Jan 05 '24 02:01 ctzsnooze

Hi Mark... checking this now - does it need rebasing? Seems to work, when I test it, and the message is useful.

Perhaps the text could say:

Connecting...
The GPS icon lights up when Betaflight is connected to a GPS module.  This usually takes a couple of seconds.<br>
It will be red at first, then change to yellow when it gets a 3D fix.<br>
If the GPS icon does not light up, check your wiring and configuration, and confirm that the GPS module is receiving power.<br>
The CLI "status" command provides more information about the state of the GPS connection.

That last line is optional and perhaps unnecessary, whatever you think.

ctzsnooze avatar Apr 03 '24 23:04 ctzsnooze

Deploy Preview for origin-betaflight-configurator ready!

Name Link
Latest commit b6f6b79b7567afff79f1b83cd9ab9c443eeba9a3
Latest deploy log https://app.netlify.com/sites/origin-betaflight-configurator/deploys/6616852dbc6f7b0008e10521
Deploy Preview https://deploy-preview-3705--origin-betaflight-configurator.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Apr 04 '24 10:04 netlify[bot]

Do you want to test this code? Here you have an automated build: Betaflight-Configurator-Android Betaflight-Configurator-Linux Betaflight-Configurator-macOS Betaflight-Configurator-Windows WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

github-actions[bot] avatar Apr 04 '24 10:04 github-actions[bot]

Do you want to test this code? Here you have an automated build: Betaflight-Configurator-Android Betaflight-Configurator-Linux Betaflight-Configurator-Windows Betaflight-Configurator-macOS WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

github-actions[bot] avatar Apr 04 '24 11:04 github-actions[bot]

Do you want to test this code? Here you have an automated build: Betaflight-Configurator-Android Betaflight-Configurator-Linux Betaflight-Configurator-Windows Betaflight-Configurator-macOS WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

github-actions[bot] avatar Apr 06 '24 23:04 github-actions[bot]

Do you want to test this code? Here you have an automated build: Betaflight-Configurator-Android Betaflight-Configurator-Linux Betaflight-Configurator-macOS Betaflight-Configurator-Windows WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

github-actions[bot] avatar Apr 06 '24 23:04 github-actions[bot]

Do you want to test this code? Here you have an automated build: Betaflight-Configurator-Android Betaflight-Configurator-Linux Betaflight-Configurator-Windows Betaflight-Configurator-macOS WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

github-actions[bot] avatar Apr 07 '24 00:04 github-actions[bot]

Do you want to test this code? Here you have an automated build: Betaflight-Configurator-Android Betaflight-Configurator-Linux Betaflight-Configurator-macOS Betaflight-Configurator-Windows WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

github-actions[bot] avatar Apr 09 '24 22:04 github-actions[bot]

Rebased on master

haslinghuis avatar Apr 09 '24 22:04 haslinghuis

Just checking the PR again... There is a bit of pale grey space under the 'yellow' of the 'Connecting...' note - maybe that can be removed? Screen Shot 2024-04-10 at 12 44 47 pm

ctzsnooze avatar Apr 10 '24 02:04 ctzsnooze

Also, I wonder if some tiny simplifications, and wider line spacing, may improve readability:

The GPS icon lights up only when the connection to the GPS module is confirmed.<br>
<br>
It will be red at first, changing to yellow when the 3D fix is attained.<br>
<br>
If the GPS icon does not light up, check your wiring and configuration, and confirm that the GPS module is receiving power.<br>
<br>
The CLI 'status' command provides more information about the state of the GPS connection.

ctzsnooze avatar Apr 10 '24 02:04 ctzsnooze

Do you want to test this code? Here you have an automated build: Betaflight-Configurator-Linux Betaflight-Configurator-Android Betaflight-Configurator-Windows Betaflight-Configurator-macOS WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

github-actions[bot] avatar Apr 10 '24 12:04 github-actions[bot]