mirror of https://github.com/ArduPilot/ardupilot
Quadplane: use vector.xy().length() instead of norm(x,y)
This commit is contained in:
parent
46ec70f9fc
commit
1da21c3b21
|
@ -3529,7 +3529,7 @@ void QuadPlane::update_throttle_mix(void)
|
|||
|
||||
// check for aggressive flight requests - requested roll or pitch angle below 15 degrees
|
||||
const Vector3f angle_target = attitude_control->get_att_target_euler_cd();
|
||||
bool large_angle_request = (norm(angle_target.x, angle_target.y) > LAND_CHECK_LARGE_ANGLE_CD);
|
||||
bool large_angle_request = angle_target.xy().length() > LAND_CHECK_LARGE_ANGLE_CD;
|
||||
|
||||
// check for large external disturbance - angle error over 30 degrees
|
||||
const float angle_error = attitude_control->get_att_error_angle_deg();
|
||||
|
|
Loading…
Reference in New Issue