mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 15:40:31 +08:00
land_detector: rover return not landed if disarmed
This commit is contained in:
@@ -60,7 +60,7 @@ void RoverLandDetector::_update_params()
|
||||
|
||||
bool RoverLandDetector::_get_ground_contact_state()
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RoverLandDetector::_get_maybe_landed_state()
|
||||
@@ -71,6 +71,10 @@ bool RoverLandDetector::_get_maybe_landed_state()
|
||||
|
||||
bool RoverLandDetector::_get_landed_state()
|
||||
{
|
||||
if (!_arming.armed) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user