Skip to content

Commit

Permalink
Update message
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Apr 6, 2024
1 parent 9383beb commit 63ae6df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,7 @@
"message": "Signal Strength"
},
"gpsSignalLost": {
"message": "It takes a few seconds for the GNSS unit to be recognized by the flight controller. The GPS icon will appear in red color when it is recognized and in yellow color when we have established a GPS fix.<br>If the icon does not light up, please check your wiring and configuration. Some units must power the device using a battery and in that case the flight controller must be restarted after power is applied to be recognized."
"message": "Connecting...<br /><br />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."
},
"gpsSignalGnssId": {
"message": "Gnss ID"
Expand Down
7 changes: 7 additions & 0 deletions src/js/tabs/gps.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ gps.initialize = async function (callback) {
$('div.mag_declination').hide();
}

if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46)) {
const positionalDop = FC.GPS_DATA.positionalDop / 100;
$('.GPS_info td.positionalDop').text(`${positionalDop.toFixed(2)}`);
} else {
$('.GPS_info td.positionalDop').parent().hide();
}

const {
mapView,
iconStyleMag,
Expand Down

0 comments on commit 63ae6df

Please sign in to comment.