Update D_CUT to D_MIN, add setpoint
commitb70d34f9db25346e8483c4f999b00dd47a9f95e8
authorctzsnooze <chris.thompson@sydney.edu.au>
Sat, 9 Feb 2019 14:41:28 +0000 (10 01:41 +1100)
committerctzsnooze <chris.thompson@sydney.edu.au>
Sat, 9 Feb 2019 14:44:55 +0000 (10 01:44 +1100)
treeea777c11446b74d988051aa1e664c59298055d0c
parent4f7fa25b06f139c070a57ceaf963d5105fcb7ba8
Update D_CUT to D_MIN, add setpoint

Directly and easily set the minimum value for D on pitch and roll.
- Boost back to the primary D setting is generated from gyro or setpoint inputs.
- Setpoint input is stick derived, faster by 10ms approx, and does not respond to propwash.
- Gyro input is motor derived and slower, but responds to propwash
- timing value sets balance between gyro (100) and setpoint (0) boost factors
- gain value sets overall sensitivity
- default D mins are 20 roll 22 pitch
- default D is 35, 38; if undefined then normal 30, 32 values
TUNING
- D value to flip overshoot control
- D_min to noise, lower values mean cooler motors but perhaps more propwash.
- Advance, higher values bring the boost in earlier, and stronger overall, useful for very high flip rates, but dampen stick responsiveness slightly.
- Gain value adjust against logs, checking maximal boost with flips and some rise with propwash, should be edging to get up from the min value in normal flight.
src/main/build/debug.c
src/main/build/debug.h
src/main/cli/settings.c
src/main/cms/cms_menu_imu.c
src/main/flight/pid.c
src/main/flight/pid.h
src/main/target/common_pre.h