@@ -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' :
@@ -980,6 +987,17 @@ function FlightLogFieldPresenter() {
980987 switch ( debugModeName ) {
981988 case 'NONE' :
982989 case 'AIRMODE' :
990+ case 'BARO' :
991+ switch ( fieldName ) {
992+ case 'debug[1]' :
993+ return `${ value . toFixed ( 0 ) } hPa` ;
994+ case 'debug[2]' :
995+ return `${ value . toFixed ( 0 ) } °C` ;
996+ case 'debug[3]' :
997+ return `${ ( value / 100 ) . toFixed ( 0 ) } m`
998+ default :
999+ return `${ ( value / 100 ) . toFixed ( 0 ) } ` ;
1000+ }
9831001 case 'VELOCITY' :
9841002 case 'DFILTER' :
9851003 return "" ;
0 commit comments