1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00

Fix initial stick arming when gyro_cal_on_first_arm is used

Previously the initial arming attempt would initiate the gyro calibration but then fail because gyro calibration was underway. The user is confused as they're holding the arming sticks but nothing is happening. This always forced the user to release the arming stick command and then perform a second arming stick command to actually arm.

After the fix the initial arming will proceed as long as the pilot holds the arming stick command through the duration of the gyro calibration (1.25 seconds by default). This seems normal to the user as they're waiting for the motors to start (or at least the arming beeps) before releasing the sticks anyway.
This commit is contained in:
Bruce Luckcuck 2018-10-15 10:15:07 -04:00
parent d193783e66
commit c676ce2f52

View file

@ -216,7 +216,8 @@ void processRcStickPositions()
if (!ARMING_FLAG(ARMED)) {
// Arm via YAW
tryArm();
if (isTryingToArm()) {
if (isTryingToArm() ||
((getArmingDisableFlags() == ARMING_DISABLED_CALIBRATING) && armingConfig()->gyro_cal_on_first_arm)) {
doNotRepeat = false;
}
} else {