mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 17:33:33 +08:00
land_detector: set max height to 100
This commit is contained in:
committed by
Lorenz Meier
parent
6939583650
commit
7f54f891c1
@@ -127,12 +127,10 @@ void LandDetector::_cycle()
|
||||
float alt_max_prev = _altitude_max;
|
||||
_altitude_max = _get_max_altitude();
|
||||
|
||||
|
||||
bool freefallDetected = (_state == LandDetectionState::FREEFALL);
|
||||
bool landDetected = (_state == LandDetectionState::LANDED);
|
||||
bool ground_contactDetected = (_state == LandDetectionState::GROUND_CONTACT);
|
||||
|
||||
|
||||
// Only publish very first time or when the result has changed.
|
||||
if ((_landDetectedPub == nullptr) ||
|
||||
(_landDetected.freefall != freefallDetected) ||
|
||||
|
||||
Reference in New Issue
Block a user