vmount: another try to get abs and types right

This commit is contained in:
Julian Oes
2017-04-10 21:05:55 +02:00
committed by Beat Küng
parent 702922e677
commit e1246063e9
+1 -1
View File
@@ -120,7 +120,7 @@ bool InputRC::_read_control_data_from_subscription(ControlData &control_data, bo
// Detect a big stick movement
for (int i = 0; i < 3; ++i) {
if (fabs(_last_set_aux_values[i] - new_aux_values[i]) > 0.25f) {
if (fabsf(_last_set_aux_values[i] - new_aux_values[i]) > 0.25f) {
major_movement = true;
}
}