mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Deprecate RoverLandDetector virtual methods that are redundant.
This commit is contained in:
@@ -39,8 +39,6 @@
|
||||
* @author Julian Oes <julian@oes.ch>
|
||||
*/
|
||||
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
#include "RoverLandDetector.h"
|
||||
|
||||
namespace land_detector
|
||||
@@ -59,12 +57,6 @@ bool RoverLandDetector::_get_ground_contact_state()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RoverLandDetector::_get_maybe_landed_state()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool RoverLandDetector::_get_landed_state()
|
||||
{
|
||||
if (!_actuator_armed.armed) {
|
||||
@@ -74,11 +66,6 @@ bool RoverLandDetector::_get_landed_state()
|
||||
return false;
|
||||
}
|
||||
|
||||
bool RoverLandDetector::_get_freefall_state()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
float RoverLandDetector::_get_max_altitude()
|
||||
{
|
||||
return 0.0f;
|
||||
|
||||
@@ -62,10 +62,6 @@ protected:
|
||||
|
||||
virtual bool _get_ground_contact_state() override;
|
||||
|
||||
virtual bool _get_maybe_landed_state() override;
|
||||
|
||||
virtual bool _get_freefall_state() override;
|
||||
|
||||
virtual float _get_max_altitude() override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user