Merged release_v1.0.0 into master

This commit is contained in:
Lorenz Meier
2015-05-27 15:28:41 -07:00
102 changed files with 977 additions and 2266 deletions
+12 -7
View File
@@ -52,19 +52,24 @@ public:
virtual ~LandDetector();
/**
* @return true if this task is currently running
**/
* @return true if this task is currently running
**/
inline bool isRunning() const {return _taskIsRunning;}
/**
* @brief Tells the Land Detector task that it should exit
**/
* @return the current landed state
*/
bool isLanded() { return _landDetected.landed; }
/**
* @brief Tells the Land Detector task that it should exit
**/
void shutdown();
/**
* @brief Blocking function that should be called from it's own task thread. This method will
* run the underlying algorithm at the desired update rate and publish if the landing state changes.
**/
* @brief Blocking function that should be called from it's own task thread. This method will
* run the underlying algorithm at the desired update rate and publish if the landing state changes.
**/
void start();
protected:
@@ -201,7 +201,7 @@ int land_detector_main(int argc, char *argv[])
if (land_detector_task) {
if (land_detector_task->isRunning()) {
warnx("running (%s)", _currentMode);
warnx("running (%s): %s", _currentMode, (land_detector_task->isLanded()) ? "LANDED" : "IN AIR");
} else {
errx(1, "exists, but not running (%s)", _currentMode);
@@ -83,7 +83,7 @@ PARAM_DEFINE_FLOAT(LNDMC_THR_MAX, 0.20f);
*
* @group Land Detector
*/
PARAM_DEFINE_FLOAT(LNDFW_VEL_XY_MAX, 0.20f);
PARAM_DEFINE_FLOAT(LNDFW_VEL_XY_MAX, 0.40f);
/**
* Fixedwing max climb rate