mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 22:30:35 +08:00
px4iofirmware use std NAN instead of undefined 0.0f/0.0f
- closes #9277
This commit is contained in:
@@ -66,7 +66,6 @@ extern "C" {
|
||||
* Maximum interval in us before FMU signal is considered lost
|
||||
*/
|
||||
#define FMU_INPUT_DROP_LIMIT_US 500000
|
||||
#define NAN_VALUE (0.0f/0.0f)
|
||||
|
||||
/* current servo arm/disarm state */
|
||||
static volatile bool mixer_servos_armed = false;
|
||||
@@ -479,7 +478,7 @@ mixer_callback(uintptr_t handle,
|
||||
control_group == actuator_controls_s::GROUP_INDEX_ATTITUDE_ALTERNATE) &&
|
||||
control_index == actuator_controls_s::INDEX_THROTTLE) {
|
||||
/* mark the throttle as invalid */
|
||||
control = NAN_VALUE;
|
||||
control = NAN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user