mirror of https://github.com/ArduPilot/ardupilot
QuadPlane: Remove repeat I term reset
This commit is contained in:
parent
bf21a0153c
commit
9a3ed31040
|
@ -782,7 +782,6 @@ void QuadPlane::check_attitude_relax(void)
|
||||||
uint32_t now = AP_HAL::millis();
|
uint32_t now = AP_HAL::millis();
|
||||||
if (now - last_att_control_ms > 500) {
|
if (now - last_att_control_ms > 500) {
|
||||||
attitude_control->relax_attitude_controllers();
|
attitude_control->relax_attitude_controllers();
|
||||||
attitude_control->reset_rate_controller_I_terms();
|
|
||||||
}
|
}
|
||||||
last_att_control_ms = now;
|
last_att_control_ms = now;
|
||||||
}
|
}
|
||||||
|
@ -1417,7 +1416,6 @@ void QuadPlane::update(void)
|
||||||
make sure we don't have any residual control from previous flight stages
|
make sure we don't have any residual control from previous flight stages
|
||||||
*/
|
*/
|
||||||
attitude_control->relax_attitude_controllers();
|
attitude_control->relax_attitude_controllers();
|
||||||
attitude_control->reset_rate_controller_I_terms();
|
|
||||||
pos_control->relax_alt_hold_controllers(0);
|
pos_control->relax_alt_hold_controllers(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue