Skip to content

Commit

Permalink
Fix DOP presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Mar 26, 2024
1 parent d3d1c33 commit 4e02858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/tabs/gps.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ gps.initialize = async function (callback) {
$('.GPS_info td.distToHome').text(`${FC.GPS_DATA.distanceToHome} m`);

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

0 comments on commit 4e02858

Please sign in to comment.