Browse Source

test_mixer remove <limits> usage

- <limits> isn't available in the NuttX c++ standard library
sbg
Daniel Agar 6 years ago
parent
commit
572d1cefe8
  1. 3
      src/systemcmds/tests/test_mixer.cpp

3
src/systemcmds/tests/test_mixer.cpp

@ -37,7 +37,6 @@ @@ -37,7 +37,6 @@
* Mixer load test
*/
#include <limits>
#include <dirent.h>
#include <string.h>
#include <unistd.h>
@ -595,7 +594,7 @@ mixer_callback(uintptr_t handle, uint8_t control_group, uint8_t control_index, f @@ -595,7 +594,7 @@ mixer_callback(uintptr_t handle, uint8_t control_group, uint8_t control_index, f
if (should_prearm && control_group == actuator_controls_s::GROUP_INDEX_ATTITUDE &&
control_index == actuator_controls_s::INDEX_THROTTLE) {
control = std::numeric_limits<float>::quiet_NaN();
control = NAN;
}
return 0;

Loading…
Cancel
Save