From 6de6de694a0c8831f8a1399a1e59abf4b33f125d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 17 May 2024 11:55:55 +1000 Subject: [PATCH] AP_Math: allow rand_float() on STM32 --- libraries/AP_Math/AP_Math.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/AP_Math/AP_Math.cpp b/libraries/AP_Math/AP_Math.cpp index 2e4d6ba9b5..dcfd788b22 100644 --- a/libraries/AP_Math/AP_Math.cpp +++ b/libraries/AP_Math/AP_Math.cpp @@ -339,7 +339,6 @@ uint16_t get_random16(void) } -#if AP_SIM_ENABLED // generate a random float between -1 and 1, for use in SITL float rand_float(void) { @@ -359,7 +358,6 @@ Vector3f rand_vec3f(void) rand_float() }; } -#endif /* return true if two rotations are equivalent