launchdetection: better integration of Blocks class

This commit is contained in:
Thomas Gubler
2014-03-08 19:00:49 +01:00
parent 501dc0cfa7
commit 935362b7a3
6 changed files with 38 additions and 27 deletions
@@ -186,7 +186,7 @@ private:
float target_bearing;
/* Launch detection */
LaunchDetector launchDetector;
launchdetection::LaunchDetector launchDetector;
/* throttle and airspeed states */
float _airspeed_error; ///< airspeed error to setpoint in m/s
@@ -989,6 +989,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> &current_positi
} else {
/* no takeoff detection --> fly */
launch_detected = true;
warnx("launchdetection off");
}
}