From 74d9f5e31428ef362033a63c10b781d943c5e5a5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 13 May 2016 13:19:31 +0200 Subject: many: remove unneeded implicit type conversion double <-> float --- tracker-rift-080/ftnoir_tracker_rift_080.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-rift-080') diff --git a/tracker-rift-080/ftnoir_tracker_rift_080.cpp b/tracker-rift-080/ftnoir_tracker_rift_080.cpp index 059f67e8..d5d6cbd6 100755 --- a/tracker-rift-080/ftnoir_tracker_rift_080.cpp +++ b/tracker-rift-080/ftnoir_tracker_rift_080.cpp @@ -57,7 +57,7 @@ void Rift_Tracker::data(double *data) yaw += s.constant_drift; old_yaw=yaw; } - constexpr double d2r = 57.295781; + constexpr float d2r = 57.295781f; data[Yaw] = yaw * -d2r; data[Pitch] = pitch * d2r; data[Roll] = roll * d2r; -- cgit v1.2.3