PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <CatapultLaunchMethod.h>
Public Member Functions | |
CatapultLaunchMethod (ModuleParams *parent) | |
~CatapultLaunchMethod () override=default | |
void | update (float accel_x) override |
LaunchDetectionResult | getLaunchDetected () const override |
void | reset () override |
float | getPitchMax (float pitchMaxDefault) override |
Public Member Functions inherited from launchdetection::LaunchMethod | |
virtual | ~LaunchMethod ()=default |
Private Attributes | |
hrt_abstime | _last_timestamp {0} |
float | _integrator {0.0f} |
float | _motorDelayCounter {0.0f} |
LaunchDetectionResult | state {LAUNCHDETECTION_RES_NONE} |
Definition at line 52 of file CatapultLaunchMethod.h.
launchdetection::CatapultLaunchMethod::CatapultLaunchMethod | ( | ModuleParams * | parent | ) |
Definition at line 49 of file CatapultLaunchMethod.cpp.
References _last_timestamp, and hrt_absolute_time().
|
overridedefault |
|
overridevirtual |
Implements launchdetection::LaunchMethod.
Definition at line 104 of file CatapultLaunchMethod.cpp.
References state.
|
overridevirtual |
Implements launchdetection::LaunchMethod.
Definition at line 116 of file CatapultLaunchMethod.cpp.
References launchdetection::LAUNCHDETECTION_RES_DETECTED_ENABLEMOTORS, and state.
|
overridevirtual |
Implements launchdetection::LaunchMethod.
Definition at line 109 of file CatapultLaunchMethod.cpp.
References _integrator, _motorDelayCounter, launchdetection::LAUNCHDETECTION_RES_NONE, and state.
Referenced by update().
|
overridevirtual |
Implements launchdetection::LaunchMethod.
Definition at line 55 of file CatapultLaunchMethod.cpp.
References _integrator, _last_timestamp, _motorDelayCounter, dt, f(), hrt_absolute_time(), hrt_elapsed_time(), launchdetection::LAUNCHDETECTION_RES_DETECTED_ENABLECONTROL, launchdetection::LAUNCHDETECTION_RES_DETECTED_ENABLEMOTORS, launchdetection::LAUNCHDETECTION_RES_NONE, reset(), and state.
|
private |
Definition at line 65 of file CatapultLaunchMethod.h.
|
private |
Definition at line 64 of file CatapultLaunchMethod.h.
Referenced by CatapultLaunchMethod(), and update().
|
private |
Definition at line 66 of file CatapultLaunchMethod.h.
|
private |
Definition at line 68 of file CatapultLaunchMethod.h.
Referenced by getLaunchDetected(), getPitchMax(), reset(), and update().