Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions js/flightlog_fields_presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,13 @@ function FlightLogFieldPresenter() {
'debug[2]': 'isLowPowerDisarmed',
'debug[3]': 'mspTelemetryDescriptor',
};
DEBUG_FRIENDLY_FIELD_NAMES.GPS_DOP = {
'debug[all]': 'GPS Dilution of Precision',
'debug[0]': 'Number of Satellites',
'debug[1]': 'pDOP (positional - 3D)',
'debug[2]': 'hDOP (horizontal - 2D)',
'debug[3]': 'vDOP (vertical - 1D)',
};
} else if (semver.gte(firmwareVersion, '4.3.0')) {
DEBUG_FRIENDLY_FIELD_NAMES.FEEDFORWARD = {
'debug[all]':'Feedforward [roll]',
Expand Down Expand Up @@ -1274,6 +1281,16 @@ function FlightLogFieldPresenter() {
default:
return value.toFixed(0);
}
case 'GPS_DOP':
switch (fieldName) {
case 'debug[0]': // Number of Satellites
return value.toFixed(0);
case 'debug[1]': // pDOP (positional - 3D)
case 'debug[2]': // hDOP (horizontal - 2D)
case 'debug[3]': // vDOP (vertical - 1D)
default:
return (value / 100).toFixed(1);
}
}
return value.toFixed(0);
}
Expand Down