PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <VtolLandDetector.h>
Public Member Functions | |
VtolLandDetector ()=default | |
~VtolLandDetector () override=default | |
Public Member Functions inherited from land_detector::MulticopterLandDetector | |
MulticopterLandDetector () | |
~MulticopterLandDetector () 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 | |
void | _update_topics () override |
Updates subscribed uORB topics. More... | |
bool | _get_landed_state () override |
bool | _get_maybe_landed_state () override |
Protected Member Functions inherited from land_detector::MulticopterLandDetector | |
void | _update_params () override |
Updates parameters. More... | |
bool | _get_ground_contact_state () override |
bool | _get_freefall_state () override |
bool | _get_ground_effect_state () override |
float | _get_max_altitude () override |
Private Member Functions | |
DEFINE_PARAMETERS_CUSTOM_PARENT (MulticopterLandDetector,(ParamFloat< px4::params::LNDFW_AIRSPD_MAX >) _param_lndfw_airspd_max) | |
Private Attributes | |
uORB::Subscription | _airspeed_sub {ORB_ID(airspeed)} |
uORB::Subscription | _vehicle_status_sub {ORB_ID(vehicle_status)} |
airspeed_s | _airspeed {} |
vehicle_status_s | _vehicle_status {} |
bool | _was_in_air {false} |
indicates whether the vehicle was in the air in the previous iteration More... | |
float | _airspeed_filtered {0.0f} |
low pass filtered airspeed More... | |
Definition at line 52 of file VtolLandDetector.h.
|
default |
|
overridedefault |
|
overrideprotectedvirtual |
Reimplemented from land_detector::MulticopterLandDetector.
Definition at line 66 of file VtolLandDetector.cpp.
References land_detector::LandDetector::_actuator_armed, _airspeed, _airspeed_filtered, land_detector::MulticopterLandDetector::_get_landed_state(), _vehicle_status, _was_in_air, actuator_armed_s::armed, airspeed_s::confidence, hrt_elapsed_time(), airspeed_s::indicated_airspeed_m_s, airspeed_s::timestamp, vehicle_status_s::timestamp, vehicle_status_s::vehicle_type, and VEHICLE_TYPE_FIXED_WING.
|
overrideprotectedvirtual |
Reimplemented from land_detector::MulticopterLandDetector.
Definition at line 56 of file VtolLandDetector.cpp.
References land_detector::LandDetector::_actuator_armed, land_detector::MulticopterLandDetector::_get_maybe_landed_state(), _vehicle_status, actuator_armed_s::armed, vehicle_status_s::timestamp, vehicle_status_s::vehicle_type, and VEHICLE_TYPE_FIXED_WING.
|
overrideprotectedvirtual |
Updates subscribed uORB topics.
Reimplemented from land_detector::MulticopterLandDetector.
Definition at line 49 of file VtolLandDetector.cpp.
References _airspeed, _airspeed_sub, land_detector::MulticopterLandDetector::_update_topics(), _vehicle_status, _vehicle_status_sub, and uORB::Subscription::update().
|
private |
|
private |
Definition at line 68 of file VtolLandDetector.h.
Referenced by _get_landed_state(), and _update_topics().
|
private |
low pass filtered airspeed
Definition at line 72 of file VtolLandDetector.h.
Referenced by _get_landed_state().
|
private |
Definition at line 65 of file VtolLandDetector.h.
Referenced by _update_topics().
|
private |
Definition at line 69 of file VtolLandDetector.h.
Referenced by _get_landed_state(), _get_maybe_landed_state(), and _update_topics().
|
private |
Definition at line 66 of file VtolLandDetector.h.
Referenced by _update_topics().
|
private |
indicates whether the vehicle was in the air in the previous iteration
Definition at line 71 of file VtolLandDetector.h.
Referenced by _get_landed_state().