pulses_without_power should be incremented if Absolute value of 'servo_val' is smaller than 0.001

This commit is contained in:
junwoo091400 2018-02-28 09:10:27 +09:00
parent 5a189290bc
commit 93c9ad0205
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ static THD_FUNCTION(ppm_thread, arg) {
current_mode_brake = true;
}
if (servo_val < 0.001) {
if (fabsf(servo_val) < 0.001) {
pulses_without_power++;
}
break;