mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Cleanup delta method code code and refactor
This commit is contained in:
parent
71392f846d
commit
035b34bbc4
4 changed files with 28 additions and 18 deletions
|
@ -42,6 +42,11 @@ typedef enum {
|
|||
PID_COUNT
|
||||
} pidControllerType_e;
|
||||
|
||||
typedef enum {
|
||||
DELTA_FROM_ERROR = 0,
|
||||
DELTA_FROM_MEASUREMENT
|
||||
} pidDeltaType_e;
|
||||
|
||||
#define IS_PID_CONTROLLER_FP_BASED(pidController) (pidController == 2)
|
||||
|
||||
typedef struct pidProfile_s {
|
||||
|
@ -60,7 +65,7 @@ typedef struct pidProfile_s {
|
|||
|
||||
uint16_t airModeInsaneAcrobilityFactor; // Air mode acrobility factor
|
||||
float dterm_lpf_hz; // Delta Filter in hz
|
||||
uint8_t deltaFromGyro; // Alternative delta Calculation
|
||||
uint8_t deltaMethod; // Alternative delta Calculation
|
||||
|
||||
#ifdef GTUNE
|
||||
uint8_t gtune_lolimP[3]; // [0..200] Lower limit of P during G tune
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue