From 42e67d5849938a2bae50dd3ad0b4b38a091765f8 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Fri, 16 Nov 2018 14:51:12 -0700 Subject: [PATCH] Plane: Whitespace fixes --- ArduPlane/navigation.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ArduPlane/navigation.cpp b/ArduPlane/navigation.cpp index 38e4709026..1c860e8304 100644 --- a/ArduPlane/navigation.cpp +++ b/ArduPlane/navigation.cpp @@ -173,19 +173,19 @@ void Plane::calc_airspeed_errors() void Plane::calc_gndspeed_undershoot() { - // Use the component of ground speed in the forward direction - // This prevents flyaway if wind takes plane backwards + // Use the component of ground speed in the forward direction + // This prevents flyaway if wind takes plane backwards if (gps.status() >= AP_GPS::GPS_OK_FIX_2D) { - Vector2f gndVel = ahrs.groundspeed_vector(); - const Matrix3f &rotMat = ahrs.get_rotation_body_to_ned(); - Vector2f yawVect = Vector2f(rotMat.a.x,rotMat.b.x); + Vector2f gndVel = ahrs.groundspeed_vector(); + const Matrix3f &rotMat = ahrs.get_rotation_body_to_ned(); + Vector2f yawVect = Vector2f(rotMat.a.x,rotMat.b.x); if (!yawVect.is_zero()) { yawVect.normalize(); float gndSpdFwd = yawVect * gndVel; groundspeed_undershoot = (aparm.min_gndspeed_cm > 0) ? (aparm.min_gndspeed_cm - gndSpdFwd*100) : 0; } } else { - groundspeed_undershoot = 0; + groundspeed_undershoot = 0; } }