mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 07:43:33 +08:00
land detector : add stbs for altitude
This commit is contained in:
committed by
Lorenz Meier
parent
1adbf37cbe
commit
e8e4e5be49
@@ -58,6 +58,10 @@ void RoverLandDetector::_update_topics()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RoverLandDetector::_update_params()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
bool RoverLandDetector::_get_ground_contact_state()
|
bool RoverLandDetector::_get_ground_contact_state()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@@ -73,8 +77,9 @@ bool RoverLandDetector::_get_freefall_state()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RoverLandDetector::_update_params()
|
float RoverLandDetector::_get_max_altitude()
|
||||||
{
|
{
|
||||||
|
return 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ protected:
|
|||||||
|
|
||||||
virtual bool _get_freefall_state() override;
|
virtual bool _get_freefall_state() override;
|
||||||
|
|
||||||
|
virtual float _get_max_altitude() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user