Skip to content

Commit

Permalink
add new disarmFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
tblaha committed Aug 9, 2024
1 parent 6900eba commit 38bf331
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/js/tabs/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ setup.initialize = function (callback) {
// 'DSHOT_BITBANG', only from API 1.42
// 'ACC_CALIBRATION', only from API 1.43
// 'MOTOR_PROTOCOL', only from API 1.43
// 'WAITING_FOR_THROW', only from API ???
// 'THROW_NOT_READY', only from API ???
// 'CATAPULT_NOT_READY', only from API ???
// 'NN_MODE', only from API ???
// 'ARM_SWITCH', // Needs to be the last element, since it's always activated if one of the others is active when arming
];

Expand All @@ -247,7 +251,12 @@ setup.initialize = function (callback) {
}

if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_43)) {
disarmFlagElements = disarmFlagElements.concat(['ACC_CALIBRATION', 'MOTOR_PROTOCOL']);
disarmFlagElements = disarmFlagElements.concat(['ACC_CALIBRATION',
'MOTOR_PROTOCOL',
'WAITING_FOR_THROW',
'THROW_NOT_READY',
'CATAPULT_NOT_READY',
'NN_MODE']);
}

// Always the latest element
Expand Down

0 comments on commit 38bf331

Please sign in to comment.