Skip to content

Commit

Permalink
add throw-to-arm mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tblaha committed Oct 11, 2023
1 parent cb8054e commit 9c19260
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,9 @@
"beeperRC_SMOOTHING_INIT_FAIL": {
"message": "Beep when armed and rc smoothing has not initialized filters"
},
"beeperTHROW_TO_ARM": {
"message": "Beep when throw-to-arm is in READY state"
},
"configuration3d": {
"message": "3D ESC/Motor Features"
},
Expand Down Expand Up @@ -2452,6 +2455,10 @@
"message": "Experimental velocity controller with external position system optitrack and sticks as setpoints",
"description": "Help text to VELOCITY CONTROL mode"
},
"auxiliaryHelpMode_THROWTOARM": {
"message": "Experimental position controller with external position system optitrack",
"description": "Help text to POSITION CONTROL mode"
},
"adjustmentsHelp": {
"message": "Configure adjustment switches. See the 'in-flight adjustments' section of the manual for details. The changes that adjustment functions make are not saved automatically."
},
Expand Down
2 changes: 2 additions & 0 deletions src/js/Beepers.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class Beepers {
{ bit: 20, name: 'CAM_CONNECTION_OPEN', visible: true },
{ bit: 21, name: 'CAM_CONNECTION_CLOSE', visible: true },
{ bit: 22, name: 'RC_SMOOTHING_INIT_FAIL', visible: true },
{ bit: 23, name: 'ARMING_GPS_NO_FIX', visible: true },
{ bit: 24, name: 'THROW_TO_ARM', visible: true },
];

if (supportedConditions) {
Expand Down
1 change: 1 addition & 0 deletions src/js/msp/MSPHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1686,6 +1686,7 @@ MspHelper.prototype.crunch = function(code, modifierCode = undefined) {
const beeperDisabledMask = FC.BEEPER_CONFIG.beepers.getDisabledMask();
buffer.push32(beeperDisabledMask);
buffer.push8(FC.BEEPER_CONFIG.dshotBeaconTone);
console.log(`${FC.BEEPER_CONFIG.dshotBeaconConditions.getDisabledMask()}`);
buffer.push32(FC.BEEPER_CONFIG.dshotBeaconConditions.getDisabledMask());
break;
case MSPCodes.MSP_SET_MIXER_CONFIG:
Expand Down

0 comments on commit 9c19260

Please sign in to comment.