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

This commit is contained in:
Josh Henderson 2021-09-11 06:35:11 -04:00 committed by Andrew Tridgell
parent 3006d50f97
commit 51023fc846
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ void AP_NMEA_Output::update()
// get speed
Vector2f speed = ahrs.groundspeed_vector();
float speed_knots = norm(speed.x, speed.y) * M_PER_SEC_TO_KNOTS;
float speed_knots = speed.length() * M_PER_SEC_TO_KNOTS;
float heading = wrap_360(degrees(atan2f(speed.x, speed.y)));
// format RMC message