mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 05:21:35 +08:00
Launch detection: Fix print statement
This commit is contained in:
@@ -78,13 +78,13 @@ void CatapultLaunchMethod::update(float accel_x)
|
|||||||
if (integrator > thresholdTime.get()) {
|
if (integrator > thresholdTime.get()) {
|
||||||
if (motorDelay.get() > 0.0f) {
|
if (motorDelay.get() > 0.0f) {
|
||||||
state = LAUNCHDETECTION_RES_DETECTED_ENABLECONTROL;
|
state = LAUNCHDETECTION_RES_DETECTED_ENABLECONTROL;
|
||||||
warnx("Launch detected: state: enablecontrol, waiting %.2fs until using full"
|
warnx("Launch detected: enablecontrol, waiting %8.4fs until full throttle",
|
||||||
" throttle", (double)motorDelay.get());
|
(double)(motorDelay.get());
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* No motor delay set: go directly to enablemotors state */
|
/* No motor delay set: go directly to enablemotors state */
|
||||||
state = LAUNCHDETECTION_RES_DETECTED_ENABLEMOTORS;
|
state = LAUNCHDETECTION_RES_DETECTED_ENABLEMOTORS;
|
||||||
warnx("Launch detected: state: enablemotors (delay not activated)");
|
warnx("Launch detected: enablemotors (delay not activated)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user