From b90c3e14988c2180fd5b8028fec74527501a4deb Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 5 Mar 2022 22:35:17 -0500 Subject: Ensure defaults are initialised --- include/xas/spatial.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/xas/spatial.h b/include/xas/spatial.h index f8591df..26d47e5 100644 --- a/include/xas/spatial.h +++ b/include/xas/spatial.h @@ -5,14 +5,15 @@ #include #include -#define XAS_SPATIAL_OBJECT_NONE 0 -#define XAS_SPATIAL_OBJECT_MANAGED (1 << 0) - #define XAS_SPATIAL_DEFAULT_OBSERVER_WIDTH 0.18f #define XAS_SPATIAL_DEFAULT_RADIUS 4000.0f /* metres */ -#define XAS_SPATIAL_DEFAULT_SPEED 343.0f /* m/s */ +#define XAS_SPATIAL_DEFAULT_MEDIUM_SPEED 343.0f /* m/s */ +#define XAS_SPATIAL_DEFAULT_OBJECT_SPEED 0.0f /* m/s */ #define XAS_SPATIAL_DEFAULT_CONE_ANGLE 35.0f /* degrees */ +#define XAS_SPATIAL_OBJECT_NONE 0 +#define XAS_SPATIAL_OBJECT_MANAGED (1 << 0) + typedef struct _xas_spatial_coord { float x, y, z; } xas_spatial_coord; -- cgit v1.2.3