diff options
author | Roman Bapst <romanbapst@yahoo.de> | 2014-11-11 15:41:07 +0100 |
---|---|---|
committer | Roman Bapst <romanbapst@yahoo.de> | 2014-11-11 15:41:07 +0100 |
commit | 284787e02c7471c1f8d651dced0497e964f33454 (patch) | |
tree | 4f481f532beadc98711fca1fb80353266a92a0fc /src/lib | |
parent | 19bc137cf319a0380f2cab9224d3cb67b39995e8 (diff) | |
download | px4-firmware-284787e02c7471c1f8d651dced0497e964f33454.tar.gz px4-firmware-284787e02c7471c1f8d651dced0497e964f33454.tar.bz2 px4-firmware-284787e02c7471c1f8d651dced0497e964f33454.zip |
removed platform specific included, they are not needed
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ecl/attitude_fw/ecl_pitch_controller.cpp | 8 | ||||
-rw-r--r-- | src/lib/ecl/attitude_fw/ecl_roll_controller.cpp | 6 | ||||
-rw-r--r-- | src/lib/ecl/attitude_fw/ecl_yaw_controller.cpp | 6 |
3 files changed, 1 insertions, 19 deletions
diff --git a/src/lib/ecl/attitude_fw/ecl_pitch_controller.cpp b/src/lib/ecl/attitude_fw/ecl_pitch_controller.cpp index d1f79f0ea..926a8db2a 100644 --- a/src/lib/ecl/attitude_fw/ecl_pitch_controller.cpp +++ b/src/lib/ecl/attitude_fw/ecl_pitch_controller.cpp @@ -47,12 +47,6 @@ #include <mathlib/mathlib.h> #include <systemlib/err.h> -#ifdef CONFIG_ARCH_ARM -#else -#include <cmath> -using namespace std; -#endif - ECL_PitchController::ECL_PitchController() : _last_run(0), _tc(0.1f), @@ -81,7 +75,7 @@ float ECL_PitchController::control_attitude(float pitch_setpoint, float roll, fl { /* Do not calculate control signal with bad inputs */ if (!(isfinite(pitch_setpoint) && isfinite(roll) && isfinite(pitch) && isfinite(airspeed))) { - //perf_count(_nonfinite_input_perf); + perf_count(_nonfinite_input_perf); warnx("not controlling pitch"); return _rate_setpoint; } diff --git a/src/lib/ecl/attitude_fw/ecl_roll_controller.cpp b/src/lib/ecl/attitude_fw/ecl_roll_controller.cpp index 30176f92f..94bd26f03 100644 --- a/src/lib/ecl/attitude_fw/ecl_roll_controller.cpp +++ b/src/lib/ecl/attitude_fw/ecl_roll_controller.cpp @@ -47,12 +47,6 @@ #include <mathlib/mathlib.h> #include <systemlib/err.h> -#ifdef CONFIG_ARCH_ARM -#else -#include <cmath> -using namespace std; -#endif - ECL_RollController::ECL_RollController() : _last_run(0), _tc(0.1f), diff --git a/src/lib/ecl/attitude_fw/ecl_yaw_controller.cpp b/src/lib/ecl/attitude_fw/ecl_yaw_controller.cpp index 1b4d8486c..fe03b8065 100644 --- a/src/lib/ecl/attitude_fw/ecl_yaw_controller.cpp +++ b/src/lib/ecl/attitude_fw/ecl_yaw_controller.cpp @@ -46,12 +46,6 @@ #include <mathlib/mathlib.h> #include <systemlib/err.h> -#ifdef CONFIG_ARCH_ARM -#else -#include <cmath> -using namespace std; -#endif - ECL_YawController::ECL_YawController() : _last_run(0), _k_p(0.0f), |