What is the reason for calculating the pitch rate using (pitch_rate = current_pitch - last_pitch) for the D term?
I would think that using the direct gyro output is a faster and more reliable way of getting the pitch rate. Using the derivate of the pitch induces delays and filters that are (to my knowledge) not ideal in a D term.
|
(var pitch-rate (/ (- pitch-deg-last pitch-deg) dt)) |
What is the reason for calculating the pitch rate using (pitch_rate = current_pitch - last_pitch) for the D term?
I would think that using the direct gyro output is a faster and more reliable way of getting the pitch rate. Using the derivate of the pitch induces delays and filters that are (to my knowledge) not ideal in a D term.
vesc_pkg/vl_bike_39p/code_stm.lbm
Line 518 in 058d879