mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Copter: Guided Angle init Z controller on time out
This commit is contained in:
parent
59909970fa
commit
0f9fcb8c2e
@ -833,7 +833,11 @@ void ModeGuided::angle_control_run()
|
||||
pitch_in = 0.0f;
|
||||
climb_rate_cms = 0.0f;
|
||||
yaw_rate_in = 0.0f;
|
||||
guided_angle_state.use_thrust = false;
|
||||
if (guided_angle_state.use_thrust) {
|
||||
// initialise vertical velocity controller
|
||||
pos_control->init_z_controller();
|
||||
guided_angle_state.use_thrust = false;
|
||||
}
|
||||
}
|
||||
|
||||
// interpret positive climb rate or thrust as triggering take-off
|
||||
|
Loading…
Reference in New Issue
Block a user