From 8d962f915e3d46ebd9a70518546946ea35818f8d Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Sun, 26 Feb 2023 23:08:21 +0100 Subject: [PATCH] AP_GPS: change isnanf for isnan --- libraries/AP_GPS/AP_GPS_UAVCAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_GPS/AP_GPS_UAVCAN.cpp b/libraries/AP_GPS/AP_GPS_UAVCAN.cpp index ced566e2de..c38601cbb0 100644 --- a/libraries/AP_GPS/AP_GPS_UAVCAN.cpp +++ b/libraries/AP_GPS/AP_GPS_UAVCAN.cpp @@ -379,7 +379,7 @@ void AP_GPS_UAVCAN::handle_velocity(const float vx, const float vy, const float interim_state.velocity = vel; velocity_to_speed_course(interim_state); // assume we have vertical velocity if we ever get a non-zero Z velocity - if (!isnanf(vel.z) && !is_zero(vel.z)) { + if (!isnan(vel.z) && !is_zero(vel.z)) { interim_state.have_vertical_velocity = true; } else { interim_state.have_vertical_velocity = state.have_vertical_velocity;