Land detector: Detect ground contact separately

This allows to detect ground contact before concluding the system is landed. This allows to disable some parts of the horizontal control system and only control the vertical position to avoid tipping over.
;
This commit is contained in:
Lorenz Meier
2017-01-28 16:23:04 +01:00
parent 36026fb631
commit 9e9e0e23ad
5 changed files with 51 additions and 18 deletions
@@ -71,6 +71,11 @@ void VtolLandDetector::_update_topics()
_orb_update(ORB_ID(airspeed), _airspeedSub, &_airspeed);
}
bool VtolLandDetector::_get_ground_contact_state()
{
return MulticopterLandDetector::_get_ground_contact_state();
}
bool VtolLandDetector::_get_landed_state()
{
// this is returned from the mutlicopter land detector