mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
Disable stick arming by default, require settings change to enable
Previously stick arming was assumed to be the case if an arming switch was not configured. This leads to a less safe default state and can lead to beginners thinking that stick arming is the default. This change adds an `enable_stick_arming` setting which defaults to `OFF`. For stick arming to function the user must actively change this setting. The previous condition about there not being an arming switch configured still applies.
This commit is contained in:
parent
a7cd21e632
commit
7087a5c87b
4 changed files with 4 additions and 1 deletions
|
@ -396,5 +396,5 @@ int32_t getRcStickDeflection(int32_t axis, uint16_t midrc) {
|
|||
void rcControlsInit(void)
|
||||
{
|
||||
analyzeModeActivationConditions();
|
||||
isUsingSticksToArm = !isModeActivationConditionPresent(BOXARM);
|
||||
isUsingSticksToArm = !isModeActivationConditionPresent(BOXARM) && systemConfig()->enableStickArming;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue