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:
commit
bb560ebdb8
5 changed files with 19 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue