AP_Math: add and use global NaNf float value

This commit is contained in:
Peter Barker 2024-09-23 19:43:11 +10:00 committed by Peter Barker
parent 54247833c0
commit 7710e3c9bc
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@
#include "location.h" #include "location.h"
#include "control.h" #include "control.h"
static const float NaNf = nanf("0x4152");
#if HAL_WITH_EKF_DOUBLE #if HAL_WITH_EKF_DOUBLE
typedef Vector2<double> Vector2F; typedef Vector2<double> Vector2F;
typedef Vector3<double> Vector3F; typedef Vector3<double> Vector3F;