mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
Fix ANGLE mode and HORIZON mode resetting the errorAngle when they are
both attempted to be enabled at the same time. Angle mode now takes precedence over horizon mode. Fix using aux settings that are not applicable to in-use aux channels - prior to this it was possible to configure aux4 and then switch to RX_SERIAL using a 7 channel system (3 aux channels) and aux4 would still have been processed.
This commit is contained in:
parent
d15b56f14e
commit
1c6ea1d397
9 changed files with 97 additions and 68 deletions
|
@ -17,6 +17,33 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
enum {
|
||||
BOXARM = 0,
|
||||
BOXANGLE,
|
||||
BOXHORIZON,
|
||||
BOXBARO,
|
||||
BOXMAG,
|
||||
BOXHEADFREE,
|
||||
BOXHEADADJ,
|
||||
BOXCAMSTAB,
|
||||
BOXCAMTRIG,
|
||||
BOXGPSHOME,
|
||||
BOXGPSHOLD,
|
||||
BOXPASSTHRU,
|
||||
BOXBEEPERON,
|
||||
BOXLEDMAX,
|
||||
BOXLEDLOW,
|
||||
BOXLLIGHTS,
|
||||
BOXCALIB,
|
||||
BOXGOV,
|
||||
BOXOSD,
|
||||
BOXTELEMETRY,
|
||||
BOXAUTOTUNE,
|
||||
CHECKBOX_ITEM_COUNT
|
||||
};
|
||||
|
||||
extern uint8_t rcOptions[CHECKBOX_ITEM_COUNT];
|
||||
|
||||
typedef enum rc_alias {
|
||||
ROLL = 0,
|
||||
PITCH,
|
||||
|
@ -66,3 +93,5 @@ throttleStatus_e calculateThrottleStatus(rxConfig_t *rxConfig, uint16_t deadband
|
|||
void processRcStickPositions(rxConfig_t *rxConfig, throttleStatus_e throttleStatus, uint32_t *activate, bool retarded_arm);
|
||||
|
||||
|
||||
void updateRcOptions(uint32_t *activate);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue