Copter: flowhold: use correct angle max

This commit is contained in:
Iampete1 2021-08-08 18:07:54 +01:00 committed by Randy Mackay
parent bd2fed31ee
commit f5c68d54cb
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ void ModeFlowHold::run()
// calculate alt-hold angles
int16_t roll_in = copter.channel_roll->get_control_in();
int16_t pitch_in = copter.channel_pitch->get_control_in();
float angle_max = copter.attitude_control->get_althold_lean_angle_max();
float angle_max = copter.aparm.angle_max;
get_pilot_desired_lean_angles(bf_angles.x, bf_angles.y, angle_max, attitude_control->get_althold_lean_angle_max());
if (quality_filtered >= flow_min_quality &&