Skip to content

Commit a40a1bf

Browse files
committed
Update Baro debug
1 parent 7f45357 commit a40a1bf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

js/flightlog_fields_presenter.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function FlightLogFieldPresenter() {
8383

8484
'vbatLatest': 'Battery volt.',
8585
'amperageLatest': 'Amperage',
86-
'BaroAlt': 'Barometer',
86+
'baroAlt': 'Barometer',
8787

8888
'heading[all]': 'Heading',
8989
'heading[0]': 'Heading [roll]',
@@ -679,6 +679,13 @@ function FlightLogFieldPresenter() {
679679

680680
if (firmwareType === FIRMWARE_TYPE_BETAFLIGHT) {
681681
if (semver.gte(firmwareVersion, '4.4.0')) {
682+
DEBUG_FRIENDLY_FIELD_NAMES.BARO = {
683+
'debug[all]':'Debug Barometer',
684+
'debug[0]':'Baro State',
685+
'debug[1]':'Baro Pressure',
686+
'debug[2]':'Baro Temperature',
687+
'debug[3]':'Baro Altitude',
688+
};
682689
DEBUG_FRIENDLY_FIELD_NAMES.RTH = {
683690
'debug[all]':'RTH Rescue codes',
684691
'debug[0]':'Pitch angle, deg',
@@ -945,7 +952,7 @@ function FlightLogFieldPresenter() {
945952
case 'heading[2]':
946953
return (value / Math.PI * 180).toFixed(1) + "°";
947954

948-
case 'BaroAlt':
955+
case 'baroAlt':
949956
return (value / 100).toFixed(1) + " m";
950957

951958
case 'flightModeFlags':

0 commit comments

Comments
 (0)