summaryrefslogtreecommitdiffhomepage
path: root/tracker-rift-080
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-13 13:19:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-13 13:19:31 +0200
commit74d9f5e31428ef362033a63c10b781d943c5e5a5 (patch)
tree71e11ed620fa1d76577df07846e910970fe9210b /tracker-rift-080
parent41a92ea7401c89c5696b3e1b2fa239458a92ff73 (diff)
many: remove unneeded implicit type conversion double <-> float
Diffstat (limited to 'tracker-rift-080')
-rwxr-xr-xtracker-rift-080/ftnoir_tracker_rift_080.cpp2
1 files changed, 1 insertions, 1 deletions
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;