|
|
|
@ -357,7 +357,6 @@ void AC_AutoTune::run()
@@ -357,7 +357,6 @@ void AC_AutoTune::run()
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int32_t target_roll_cd, target_pitch_cd, target_yaw_rate_cds; |
|
|
|
|
get_pilot_desired_rp_yrate_cd(target_roll_cd, target_pitch_cd, target_yaw_rate_cds); |
|
|
|
|
|
|
|
|
@ -651,7 +650,6 @@ void AC_AutoTune::control_attitude()
@@ -651,7 +650,6 @@ void AC_AutoTune::control_attitude()
|
|
|
|
|
// re-enable rate limits
|
|
|
|
|
attitude_control->use_sqrt_controller(true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// log the latest gains
|
|
|
|
|
if ((tune_type == SP_DOWN) || (tune_type == SP_UP)) { |
|
|
|
|
switch (axis) { |
|
|
|
@ -679,7 +677,6 @@ void AC_AutoTune::control_attitude()
@@ -679,7 +677,6 @@ void AC_AutoTune::control_attitude()
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Check results after mini-step to increase rate D gain
|
|
|
|
|
switch (tune_type) { |
|
|
|
|
case RD_UP: |
|
|
|
|