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

Avoid calling mwDisarm() when due to having auto_disarm_delay when using

switch to arm().
This commit is contained in:
Dominic Clifton 2014-12-26 20:22:13 +00:00
parent c0dbde0318
commit 347b156727
3 changed files with 11 additions and 2 deletions

View file

@ -57,6 +57,11 @@ int16_t rcCommand[4]; // interval [1000;2000] for THROTTLE and [-500;+
uint32_t rcModeActivationMask; // one bit per mode defined in boxId_e
bool isUsingSticksForArming(void)
{
return isUsingSticksToArm;
}
bool areSticksInApModePosition(uint16_t ap_mode)
{
return abs(rcCommand[ROLL]) < ap_mode && abs(rcCommand[PITCH]) < ap_mode;