tap_esc: remove NAN_VALUE define and use existing NAN instead

This commit is contained in:
Beat Küng 2018-03-27 16:15:18 +02:00 committed by Daniel Agar
parent 54260313b7
commit 37d9d0c2cd
1 changed files with 1 additions and 3 deletions

View File

@ -60,8 +60,6 @@
#include "tap_esc_common.h" #include "tap_esc_common.h"
#define NAN_VALUE (0.0f/0.0f)
#ifndef B250000 #ifndef B250000
#define B250000 250000 #define B250000 250000
#endif #endif
@ -844,7 +842,7 @@ int TAP_ESC::control_callback(uint8_t control_group, uint8_t control_index, floa
control_group == actuator_controls_s::GROUP_INDEX_ATTITUDE_ALTERNATE) && control_group == actuator_controls_s::GROUP_INDEX_ATTITUDE_ALTERNATE) &&
control_index == actuator_controls_s::INDEX_THROTTLE) { control_index == actuator_controls_s::INDEX_THROTTLE) {
/* set the throttle to an invalid value */ /* set the throttle to an invalid value */
input = NAN_VALUE; input = NAN;
} }
} }