1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

More efficiency in PID code // add yaw velocity to setpoint

This commit is contained in:
borisbstyle 2016-08-04 00:50:11 +02:00
parent a64741365c
commit b4e61d49c9
6 changed files with 44 additions and 46 deletions

View file

@ -100,8 +100,7 @@ typedef struct pidProfile_s {
uint8_t itermThrottleGain; // Throttle coupling to iterm. Quick throttle changes will bump iterm
uint8_t ptermSetpointWeight; // Setpoint weight for Pterm (lower means more PV tracking)
uint8_t dtermSetpointWeight; // Setpoint weight for Dterm (0= measurement, 1= full error, 1 > agressive derivative)
uint16_t pidMaxVelocity; // velocity limiter for pid controller (per ms)
uint16_t pidMaxVelocityYaw; // velocity limiter for pid controller (per ms) yaw
uint16_t pidMaxVelocityYaw; // velocity limiter for pid controller deg/sec/ms
#ifdef GTUNE
uint8_t gtune_lolimP[3]; // [0..200] Lower limit of P during G tune