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

Extend the scope of BOXPARALYZE to cover stick commands, adjustments, and CMS. (#8161)

Extend the scope of BOXPARALYZE to cover stick commands, adjustments, and CMS.
This commit is contained in:
Michael Keller 2019-05-09 14:50:30 +12:00 committed by GitHub
commit bb560ebdb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 17 deletions

View file

@ -31,6 +31,8 @@
#include "cli/cli.h"
#include "cms/cms.h"
#include "common/axis.h"
#include "common/filter.h"
#include "common/maths.h"
@ -835,7 +837,13 @@ bool processRx(timeUs_t currentTimeUs)
disarmAt = currentTimeUs + autoDisarmDelayUs; // extend auto-disarm timer
}
processRcStickPositions();
if (!IS_RC_MODE_ACTIVE(BOXPARALYZE)
#ifdef USE_CMS
&& !cmsInMenu
#endif
) {
processRcStickPositions();
}
if (featureIsEnabled(FEATURE_INFLIGHT_ACC_CAL)) {
updateInflightCalibrationState();
@ -850,7 +858,7 @@ bool processRx(timeUs_t currentTimeUs)
}
#endif
if (!cliMode) {
if (!cliMode && !IS_RC_MODE_ACTIVE(BOXPARALYZE)) {
processRcAdjustments(currentControlRateProfile);
}