mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Move parameter from PID profile to rate profile
This commit is contained in:
parent
fc189e5850
commit
357d19aa05
5 changed files with 14 additions and 21 deletions
|
@ -37,6 +37,12 @@ typedef enum {
|
|||
THROTTLE_LIMIT_TYPE_CLIP,
|
||||
} throttleLimitType_e;
|
||||
|
||||
|
||||
typedef enum {
|
||||
TPA_MODE_PD,
|
||||
TPA_MODE_D
|
||||
} tpaMode_e;
|
||||
|
||||
typedef struct controlRateConfig_s {
|
||||
uint8_t thrMid8;
|
||||
uint8_t thrExpo8;
|
||||
|
@ -49,6 +55,7 @@ typedef struct controlRateConfig_s {
|
|||
uint8_t throttle_limit_type; // Sets the throttle limiting type - off, scale or clip
|
||||
uint8_t throttle_limit_percent; // Sets the maximum pilot commanded throttle limit
|
||||
uint16_t rate_limit[3]; // Sets the maximum rate for the axes
|
||||
uint8_t tpaMode; // Controls which PID terms TPA effects
|
||||
} controlRateConfig_t;
|
||||
|
||||
PG_DECLARE_ARRAY(controlRateConfig_t, CONTROL_RATE_PROFILE_COUNT, controlRateProfiles);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue