PX4 Firmware
PX4 Autopilot Software http://px4.io
launchdetection::LaunchDetector Class Reference

#include <LaunchDetector.h>

Inheritance diagram for launchdetection::LaunchDetector:
Collaboration diagram for launchdetection::LaunchDetector:

Public Member Functions

 LaunchDetector (ModuleParams *parent)
 
 ~LaunchDetector () override
 
 LaunchDetector (const LaunchDetector &)=delete
 
LaunchDetector operator= (const LaunchDetector &)=delete
 
void reset ()
 
void update (float accel_x)
 
LaunchDetectionResult getLaunchDetected ()
 
bool launchDetectionEnabled ()
 
float getPitchMax (float pitchMaxDefault)
 

Private Attributes

int _activeLaunchDetectionMethodIndex {-1}
 
LaunchMethod_launchMethods [1]
 

Detailed Description

Definition at line 50 of file LaunchDetector.h.

Constructor & Destructor Documentation

◆ LaunchDetector() [1/2]

launchdetection::LaunchDetector::LaunchDetector ( ModuleParams *  parent)

Definition at line 48 of file LaunchDetector.cpp.

References _launchMethods.

◆ ~LaunchDetector()

launchdetection::LaunchDetector::~LaunchDetector ( )
override

Definition at line 55 of file LaunchDetector.cpp.

References _launchMethods.

◆ LaunchDetector() [2/2]

launchdetection::LaunchDetector::LaunchDetector ( const LaunchDetector )
delete

Member Function Documentation

◆ getLaunchDetected()

LaunchDetectionResult launchdetection::LaunchDetector::getLaunchDetected ( )

Definition at line 80 of file LaunchDetector.cpp.

References _activeLaunchDetectionMethodIndex, _launchMethods, launchdetection::LaunchMethod::getLaunchDetected(), launchdetection::LAUNCHDETECTION_RES_NONE, and launchDetectionEnabled().

Referenced by FixedwingPositionControl::control_takeoff().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPitchMax()

float launchdetection::LaunchDetector::getPitchMax ( float  pitchMaxDefault)

Definition at line 101 of file LaunchDetector.cpp.

References _activeLaunchDetectionMethodIndex, _launchMethods, launchdetection::LaunchMethod::getPitchMax(), and launchDetectionEnabled().

Referenced by FixedwingPositionControl::control_takeoff().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ launchDetectionEnabled()

bool launchdetection::LaunchDetector::launchDetectionEnabled ( )
inline

Definition at line 63 of file LaunchDetector.h.

Referenced by FixedwingPositionControl::control_takeoff(), getLaunchDetected(), getPitchMax(), and update().

Here is the caller graph for this function:

◆ operator=()

LaunchDetector launchdetection::LaunchDetector::operator= ( const LaunchDetector )
delete

◆ reset()

void launchdetection::LaunchDetector::reset ( void  )

Definition at line 60 of file LaunchDetector.cpp.

References _activeLaunchDetectionMethodIndex, and _launchMethods.

Referenced by FixedwingPositionControl::control_takeoff(), and FixedwingPositionControl::reset_takeoff_state().

Here is the caller graph for this function:

◆ update()

void launchdetection::LaunchDetector::update ( float  accel_x)

Definition at line 71 of file LaunchDetector.cpp.

References _launchMethods, and launchDetectionEnabled().

Referenced by FixedwingPositionControl::control_takeoff().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _activeLaunchDetectionMethodIndex

int launchdetection::LaunchDetector::_activeLaunchDetectionMethodIndex {-1}
private

Definition at line 75 of file LaunchDetector.h.

Referenced by getLaunchDetected(), getPitchMax(), and reset().

◆ _launchMethods

LaunchMethod* launchdetection::LaunchDetector::_launchMethods[1]
private

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