From 6918dfe1e69a445f6198cd6bd28e58ad4a36efd5 Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Thu, 3 Oct 2019 10:23:20 +0200 Subject: [PATCH] Add debug names for Betaflight 4.1 --- js/flightlog_fielddefs.js | 12 +++++- js/flightlog_fields_presenter.js | 70 ++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 1 deletion(-) diff --git a/js/flightlog_fielddefs.js b/js/flightlog_fielddefs.js index 6e4a4b5c..cb9d04c7 100644 --- a/js/flightlog_fielddefs.js +++ b/js/flightlog_fielddefs.js @@ -305,6 +305,16 @@ var "D_MIN", "AC_CORRECTION", "AC_ERROR", + "DUAL_GYRO_SCALED", + "DSHOT_RPM_ERRORS", + "CRSF_LINK_STATISTICS_UPLINK", + "CRSF_LINK_STATISTICS_PWR", + "CRSF_LINK_STATISTICS_DOWN", + "BARO", + "GPS_RESCUE_THROTTLE_PID", + "DYN_IDLE", + "FF_LIMIT", + "FF_INTERPOLATED", ]), SUPER_EXPO_YAW = makeReadOnly([ @@ -409,7 +419,7 @@ function adjustFieldDefsList(firmwareType, firmwareVersion) { DEBUG_MODE.splice(DEBUG_MODE.indexOf('NOTCH'), 1, 'GYRO_SCALED'); } if(semver.gte(firmwareVersion, '4.0.0')) { - DEBUG_MODE.splice(DEBUG_MODE.indexOf('RX_FRSKY_SPI'), 0, 'GYRO_RAW'); + DEBUG_MODE.splice(DEBUG_MODE.indexOf('GYRO_RAW'), 0, 'RX_SFHSS_SPI'); } if(semver.gte(firmwareVersion, '4.1.0')) { DEBUG_MODE.splice(DEBUG_MODE.indexOf('DUAL_GYRO'), 1); diff --git a/js/flightlog_fields_presenter.js b/js/flightlog_fields_presenter.js index cf86dfe4..75255e7e 100644 --- a/js/flightlog_fields_presenter.js +++ b/js/flightlog_fields_presenter.js @@ -336,6 +336,76 @@ function FlightLogFieldPresenter() { 'debug[2]':'AC Error [yaw]', 'debug[3]':'Not Used', }, + 'DUAL_GYRO_SCALED' : { + 'debug[all]':'Dual Gyro Scaled', + 'debug[0]':'Gyro 1 [roll]', + 'debug[1]':'Gyro 1 [pitch]', + 'debug[2]':'Gyro 2 [roll]', + 'debug[3]':'Gyro 2 [pitch]', + }, + 'DSHOT_RPM_ERRORS' : { + 'debug[all]':'DSHOT RPM Error', + 'debug[0]':'DSHOT RPM Error [1]', + 'debug[1]':'DSHOT RPM Error [2]', + 'debug[2]':'DSHOT RPM Error [3]', + 'debug[3]':'DSHOT RPM Error [4]', + }, + 'CRSF_LINK_STATISTICS_UPLINK' : { + 'debug[all]':'CRSF Stats Uplink', + 'debug[0]':'Uplink RSSI 1', + 'debug[1]':'Uplink RSSI 2', + 'debug[2]':'Uplink Link Quality', + 'debug[3]':'RF Mode', + }, + 'CRSF_LINK_STATISTICS_PWR' : { + 'debug[all]':'CRSF Stats Power', + 'debug[0]':'Antenna', + 'debug[1]':'SNR', + 'debug[2]':'TX Power', + 'debug[3]':'Not Used', + }, + 'CRSF_LINK_STATISTICS_DOWN' : { + 'debug[all]':'CRSF Stats Downlink', + 'debug[0]':'Downlink RSSI', + 'debug[1]':'Downlink Link Quality', + 'debug[2]':'Downlink SNR', + 'debug[3]':'Not Used', + }, + 'BARO' : { + 'debug[all]':'Debug Barometer', + 'debug[0]':'Baro State', + 'debug[1]':'Baro Temperature', + 'debug[2]':'Baro Pressure', + 'debug[3]':'Baro Pressure Sum', + }, + 'GPS_RESCUE_THROTTLE_PID' : { + 'debug[all]':'GPS Rescue Throttle PID', + 'debug[0]':'Throttle P', + 'debug[1]':'Throttle I', + 'debug[2]':'Throttle D', + 'debug[3]':'Z Velocity', + }, + 'DYN_IDLE' : { + 'debug[all]':'Dyn Idle', + 'debug[0]':'Motor Range Min Inc', + 'debug[1]':'Target RPS Change Rate', + 'debug[2]':'Error', + 'debug[3]':'Min RPS', + }, + 'FF_LIMIT' : { + 'debug[all]':'FF Limit', + 'debug[0]':'FF [Roll]', + 'debug[1]':'FF [Pitch]', + 'debug[2]':'FF Final [Roll]', + 'debug[3]':'Not Used', + }, + 'FF_INTERPOLATED' : { + 'debug[all]':'FF Interpolated', + 'debug[0]':'Setpoint Delta Impl [Roll]', + 'debug[1]':'Boost Amount', + 'debug[2]':'Boost Amount Clip [Roll]', + 'debug[3]':'Clip', + }, }; function presentFlags(flags, flagNames) {