PX4 Firmware
PX4 Autopilot Software http://px4.io
land_detector::RoverLandDetector Class Reference

#include <RoverLandDetector.h>

Inheritance diagram for land_detector::RoverLandDetector:
Collaboration diagram for land_detector::RoverLandDetector:

Public Member Functions

 RoverLandDetector ()=default
 
 ~RoverLandDetector () override=default
 
- Public Member Functions inherited from land_detector::LandDetector
 LandDetector ()
 
virtual ~LandDetector ()
 
int print_status () override
 
void start ()
 Get the work queue going. More...
 

Protected Member Functions

bool _get_ground_contact_state () override
 
bool _get_landed_state () override
 
- Protected Member Functions inherited from land_detector::LandDetector
virtual void _update_params ()
 Updates parameters. More...
 
virtual void _update_topics ()
 Updates subscribed uORB topics. More...
 
virtual bool _get_maybe_landed_state ()
 
virtual bool _get_freefall_state ()
 
virtual float _get_max_altitude ()
 
virtual bool _get_ground_effect_state ()
 

Additional Inherited Members

- Static Public Member Functions inherited from land_detector::LandDetector
static int custom_command (int argc, char *argv[])
 
static int print_usage (const char *reason=nullptr)
 
static int task_spawn (int argc, char *argv[])
 
- Protected Attributes inherited from land_detector::LandDetector
systemlib::Hysteresis _freefall_hysteresis {false}
 
systemlib::Hysteresis _landed_hysteresis {true}
 
systemlib::Hysteresis _maybe_landed_hysteresis {true}
 
systemlib::Hysteresis _ground_contact_hysteresis {true}
 
systemlib::Hysteresis _ground_effect_hysteresis {false}
 
actuator_armed_s _actuator_armed {}
 
vehicle_acceleration_s _vehicle_acceleration {}
 
vehicle_land_detected_s _land_detected
 
vehicle_local_position_s _vehicle_local_position {}
 
uORB::Publication< vehicle_land_detected_s_vehicle_land_detected_pub {ORB_ID(vehicle_land_detected)}
 
- Static Protected Attributes inherited from land_detector::LandDetector
static constexpr uint32_t LAND_DETECTOR_UPDATE_INTERVAL = 20_ms
 Run main land detector loop at this interval. More...
 

Detailed Description

Definition at line 49 of file RoverLandDetector.h.

Constructor & Destructor Documentation

◆ RoverLandDetector()

land_detector::RoverLandDetector::RoverLandDetector ( )
default

◆ ~RoverLandDetector()

land_detector::RoverLandDetector::~RoverLandDetector ( )
overridedefault

Member Function Documentation

◆ _get_ground_contact_state()

bool land_detector::RoverLandDetector::_get_ground_contact_state ( )
overrideprotectedvirtual
Returns
true if UAV is touching ground but not landed

Reimplemented from land_detector::LandDetector.

Definition at line 47 of file RoverLandDetector.cpp.

◆ _get_landed_state()

bool land_detector::RoverLandDetector::_get_landed_state ( )
overrideprotectedvirtual
Returns
true if UAV is in a landed state.

Implements land_detector::LandDetector.

Definition at line 52 of file RoverLandDetector.cpp.

References land_detector::LandDetector::_actuator_armed, and actuator_armed_s::armed.


The documentation for this class was generated from the following files: