Add return INFINITY; to the LandDetector class _get_max_altitude() method declaration (#12343)

This commit is contained in:
Mark Sauder
2019-10-15 00:19:53 -06:00
committed by Julian Oes
parent 9f639d1f3b
commit 0cbb693a8d
5 changed files with 0 additions and 18 deletions
@@ -57,13 +57,6 @@ void FixedwingLandDetector::_update_topics()
_airspeed_sub.update(&_airspeed);
}
float FixedwingLandDetector::_get_max_altitude()
{
// TODO: This means no altitude limit as the limit
// is always current position plus 10000 meters.
return roundf(-_vehicle_local_position.z + 10000);
}
bool FixedwingLandDetector::_get_landed_state()
{
// Only trigger flight conditions if we are armed.