Browse Source

Yaw Performance tweaks

mission-4.1.18
Jason Short 13 years ago
parent
commit
21460a57ae
  1. 2
      ArduCopter/Attitude.pde
  2. 2
      ArduCopter/config.h

2
ArduCopter/Attitude.pde

@ -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

2
ArduCopter/config.h

@ -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…
Cancel
Save