PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <LaunchDetector.h>
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] |
Definition at line 50 of file LaunchDetector.h.
launchdetection::LaunchDetector::LaunchDetector | ( | ModuleParams * | parent | ) |
Definition at line 48 of file LaunchDetector.cpp.
References _launchMethods.
|
override |
Definition at line 55 of file LaunchDetector.cpp.
References _launchMethods.
|
delete |
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().
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().
|
inline |
Definition at line 63 of file LaunchDetector.h.
Referenced by FixedwingPositionControl::control_takeoff(), getLaunchDetected(), getPitchMax(), and update().
|
delete |
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().
void launchdetection::LaunchDetector::update | ( | float | accel_x | ) |
Definition at line 71 of file LaunchDetector.cpp.
References _launchMethods, and launchDetectionEnabled().
Referenced by FixedwingPositionControl::control_takeoff().
|
private |
Definition at line 75 of file LaunchDetector.h.
Referenced by getLaunchDetected(), getPitchMax(), and reset().
|
private |
Definition at line 77 of file LaunchDetector.h.
Referenced by getLaunchDetected(), getPitchMax(), LaunchDetector(), reset(), update(), and ~LaunchDetector().