From 95a248ab6e10a4c83131e9d7ff60986e8fc38779 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Mon, 24 Feb 2025 12:54:06 +0100 Subject: [PATCH] First udp communcation is working --- Direction.h | 6 ++++++ Spherical.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Direction.h b/Direction.h index b614a04..1120c6b 100644 --- a/Direction.h +++ b/Direction.h @@ -91,6 +91,12 @@ protected: using DirectionSingle = DirectionOf; using Direction16 = DirectionOf; +#if defined(ARDUINO) +using Direction = Direction16; +#else +using Direction = DirectionSingle; +#endif + } // namespace LinearAlgebra } // namespace Passer using namespace Passer::LinearAlgebra; diff --git a/Spherical.h b/Spherical.h index e4d6682..3131a53 100644 --- a/Spherical.h +++ b/Spherical.h @@ -180,6 +180,12 @@ using SphericalSingle = SphericalOf; /// hardware using Spherical16 = SphericalOf; +#if defined(ARDUINO) +using Spherical = Spherical16; +#else +using Spherical = SphericalSingle; +#endif + } // namespace LinearAlgebra } // namespace Passer using namespace Passer::LinearAlgebra;