diff options
Diffstat (limited to 'ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp')
-rw-r--r-- | ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp index cbb4440e..a4f026de 100644 --- a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp +++ b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp @@ -227,7 +227,7 @@ void FTNoIR_Tracker::GetHeadPoseData(double *data) auto max = (max_[idx] - mid); auto min = (mid - min_[idx]); - data[i] = val * limits[i] / (double) (val > mid ? max : min); + data[i] = val * limits[i] / (double) (val > 0 ? max : min); } } } |