44 #include <px4_platform_common/log.h> 64 if (accel_x > _param_laun_cat_a.get()) {
68 if (_param_laun_cat_mdel.get() > 0.0f) {
70 PX4_WARN(
"Launch detected: enablecontrol, waiting %8.4fs until full throttle",
71 double(_param_laun_cat_mdel.get()));
76 PX4_WARN(
"Launch detected: enablemotors (delay not activated)");
92 PX4_INFO(
"Launch detected: state enablemotors");
120 return pitchMaxDefault;
123 return _param_laun_cat_pmax.get();
Launch has been detected, the controller should control attitude and also throttle up the motors...
LaunchDetectionResult state
hrt_abstime _last_timestamp
No launch has been detected.
float getPitchMax(float pitchMaxDefault) override
Launch has been detected, the controller should control the attitude.
Vector< float, 6 > f(float t, const Matrix< float, 6, 1 > &, const Matrix< float, 3, 1 > &)
CatapultLaunchMethod(ModuleParams *parent)
static hrt_abstime hrt_elapsed_time(const hrt_abstime *then)
Compute the delta between a timestamp taken in the past and now.
void update(float accel_x) override
LaunchDetectionResult getLaunchDetected() const override
Catpult Launch detection.
__EXPORT hrt_abstime hrt_absolute_time(void)
Get absolute time in [us] (does not wrap).