Quadplane: use vector.xy().length() instead of norm(x,y)

This commit is contained in:
Josh Henderson 2021-09-11 06:26:49 -04:00 committed by Andrew Tridgell
parent 46ec70f9fc
commit 1da21c3b21
1 changed files with 1 additions and 1 deletions

View File

@ -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();