Copter: flowhold: use correct angle max
This commit is contained in:
parent
bd2fed31ee
commit
f5c68d54cb
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user