mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 13:57:35 +08:00
vmount: another try to get abs and types right
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user