diff options
author | Julian Oes <julian@oes.ch> | 2014-03-11 10:59:11 +0100 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-03-11 10:59:11 +0100 |
commit | 2db140bcabaafcccc1ed2ce070d7a24b4133eb57 (patch) | |
tree | 522d3d299150bf15feb0640ed8f9b49b89f27707 /src | |
parent | 8267bdf4a5aa857db0f970da750d782f1d8ec369 (diff) | |
download | px4-firmware-2db140bcabaafcccc1ed2ce070d7a24b4133eb57.tar.gz px4-firmware-2db140bcabaafcccc1ed2ce070d7a24b4133eb57.tar.bz2 px4-firmware-2db140bcabaafcccc1ed2ce070d7a24b4133eb57.zip |
fw_att_control: delete the unused flag
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/fw_att_control/fw_att_control_main.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/fw_att_control/fw_att_control_main.cpp b/src/modules/fw_att_control/fw_att_control_main.cpp index c59a396c2..ec91f4d8c 100644 --- a/src/modules/fw_att_control/fw_att_control_main.cpp +++ b/src/modules/fw_att_control/fw_att_control_main.cpp @@ -136,7 +136,6 @@ private: perf_counter_t _loop_perf; /**< loop performance counter */ bool _setpoint_valid; /**< flag if the position control setpoint is valid */ - bool _airspeed_valid; /**< flag if the airspeed measurement is valid */ struct { float tconst; @@ -293,8 +292,7 @@ FixedwingAttitudeControl::FixedwingAttitudeControl() : /* performance counters */ _loop_perf(perf_alloc(PC_ELAPSED, "fw att control")), /* states */ - _setpoint_valid(false), - _airspeed_valid(false) + _setpoint_valid(false) { /* safely initialize structs */ _att = {0}; @@ -753,10 +751,6 @@ FixedwingAttitudeControl::task_main() warnx("Non-finite setpoint roll_sp: %.4f, pitch_sp %.4f", roll_sp, pitch_sp); } - // warnx("aspd: %s: %6.2f, aspd scaling: %6.2f, controls: %5.2f %5.2f %5.2f %5.2f", (_airspeed_valid) ? "valid" : "unknown", - // airspeed, airspeed_scaling, _actuators.control[0], _actuators.control[1], - // _actuators.control[2], _actuators.control[3]); - /* * Lazily publish the rate setpoint (for analysis, the actuators are published below) * only once available |