Yaw Performance tweaks
This commit is contained in:
parent
95a70cf32e
commit
21460a57ae
@ -153,7 +153,7 @@ get_stabilize_yaw(int32_t target_angle)
|
|||||||
rate = g.pi_rate_yaw.get_pi(error, G_Dt);
|
rate = g.pi_rate_yaw.get_pi(error, G_Dt);
|
||||||
|
|
||||||
// output control:
|
// output control:
|
||||||
int16_t yaw_input = 1200 + abs(g.rc_4.control_in);
|
int16_t yaw_input = 1400 + abs(g.rc_4.control_in);
|
||||||
// smoother Yaw control:
|
// smoother Yaw control:
|
||||||
rate = constrain(rate, -yaw_input, yaw_input);
|
rate = constrain(rate, -yaw_input, yaw_input);
|
||||||
#endif
|
#endif
|
||||||
|
@ -582,7 +582,7 @@
|
|||||||
// YAW Control
|
// YAW Control
|
||||||
//
|
//
|
||||||
#ifndef STABILIZE_YAW_P
|
#ifndef STABILIZE_YAW_P
|
||||||
# define STABILIZE_YAW_P 10 // increase for more aggressive Yaw Hold, decrease if it's bouncy
|
# define STABILIZE_YAW_P 9.5 // increase for more aggressive Yaw Hold, decrease if it's bouncy
|
||||||
#endif
|
#endif
|
||||||
#ifndef STABILIZE_YAW_I
|
#ifndef STABILIZE_YAW_I
|
||||||
# define STABILIZE_YAW_I 0.01 // set to .0001 to try and get over user's steady state error caused by poor balance
|
# define STABILIZE_YAW_I 0.01 // set to .0001 to try and get over user's steady state error caused by poor balance
|
||||||
|
Loading…
Reference in New Issue
Block a user