Skip to content

Commit

Permalink
Update debug mode (#607)
Browse files Browse the repository at this point in the history
Update ddebug mode
  • Loading branch information
haslinghuis authored Nov 21, 2022
1 parent 201f76b commit 6b80c9f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions js/flightlog_fielddefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,26 @@ function adjustFieldDefsList(firmwareType, firmwareVersion) {
DEBUG_MODE.splice(DEBUG_MODE.indexOf('DUAL_GYRO'), 1);
DEBUG_MODE.splice(DEBUG_MODE.indexOf('DUAL_GYRO_COMBINED'), 1);
}
if (semver.gte(firmwareVersion, '4.2.0')) {
DEBUG_MODE.splice(DEBUG_MODE.indexOf('FF_INTERPOLATED'), 1);
}
if (semver.gte(firmwareVersion, '4.3.0')) {
DEBUG_MODE.splice(DEBUG_MODE.indexOf('FF_INTERPOLATED'), 1, 'FEEDFORWARD');
DEBUG_MODE.splice(DEBUG_MODE.indexOf('FF_LIMIT'), 1, 'FEEDFORWARD_LIMIT');
DEBUG_MODE.splice(DEBUG_MODE.indexOf('DYN_IDLE'), 1);
DEBUG_MODE.splice(DEBUG_MODE.indexOf('FFT'), 1);
DEBUG_MODE.splice(DEBUG_MODE.indexOf('FFT_TIME'), 1);
DEBUG_MODE.splice(DEBUG_MODE.indexOf('FFT_FREQ'), 1);
DEBUG_MODE.splice(DEBUG_MODE.indexOf('GPS_RESCUE_THROTTLE_PID'), 1);
}
if (semver.gte(firmwareVersion, '4.4.0')) {
DEBUG_MODE.splice(DEBUG_MODE.indexOf('BARO'), 1);
DEBUG_MODE.splice(DEBUG_MODE.indexOf('RTH'), 1);
DEBUG_MODE.splice(DEBUG_MODE.indexOf('GPS_RESCUE_THROTTLE_PID'), 1);
DEBUG_MODE.splice(DEBUG_MODE.indexOf('VTX_MSP'), 1);
DEBUG_MODE.splice(DEBUG_MODE.indexOf('GPS_DOP'), 1);
}

DEBUG_MODE = makeReadOnly(DEBUG_MODE);

// Flight mode names
Expand Down

0 comments on commit 6b80c9f

Please sign in to comment.