diff options
Diffstat (limited to 'proto-ft')
-rw-r--r-- | proto-ft/ftnoir_protocol_ft.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index d0e89753..fe96db93 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -9,6 +9,7 @@ #include "ftnoir_protocol_ft.h" #include "csv/csv.h" #include "opentrack-library-path.h" +#include "opentrack-compat/pi-constant.hpp" check_for_first_run FTNoIR_Protocol::runonce_check = check_for_first_run(); @@ -96,7 +97,7 @@ void FTNoIR_Protocol::pose(const double* headpose) float FTNoIR_Protocol::degrees_to_rads(double degrees) { - static constexpr double pi = 3.14159265358979323846; + static constexpr double pi = OPENTRACK_PI; return float(degrees*pi/180); } |