mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
make itermRelax into enum
This commit is contained in:
parent
5bdc2ead61
commit
dc929baf75
2 changed files with 13 additions and 4 deletions
|
@ -76,6 +76,15 @@ typedef struct pid8_s {
|
|||
uint8_t D;
|
||||
} pid8_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
ITERM_RELAX_OFF,
|
||||
ITERM_RELAX_RP,
|
||||
ITERM_RELAX_RPY
|
||||
} itermRelax_e;
|
||||
|
||||
|
||||
|
||||
typedef struct pidProfile_s {
|
||||
pid8_t pid[PID_ITEM_COUNT];
|
||||
|
||||
|
@ -118,7 +127,7 @@ typedef struct pidProfile_s {
|
|||
uint8_t smart_feedforward; // takes only the larger of P and the D weight feed forward term if they have the same sign.
|
||||
uint8_t iterm_relax_cutoff_low; // Slowest setpoint response to prevent iterm accumulation
|
||||
uint8_t iterm_relax_cutoff_high; // Fastest setpoint response to prevent iterm accumulation
|
||||
uint8_t iterm_relax; // Enable iterm suppression during stick input
|
||||
itermRelax_e iterm_relax; // Enable iterm suppression during stick input
|
||||
|
||||
} pidProfile_t;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue