Skip to content
Snippets Groups Projects
Commit d7fc0ee5 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

Launch detection: Fix print statement

parent 0da9b4d7
No related branches found
No related tags found
No related merge requests found
......@@ -78,13 +78,13 @@ void CatapultLaunchMethod::update(float accel_x)
if (integrator > thresholdTime.get()) {
if (motorDelay.get() > 0.0f) {
state = LAUNCHDETECTION_RES_DETECTED_ENABLECONTROL;
warnx("Launch detected: state: enablecontrol, waiting %.2fs until using full"
" throttle", (double)motorDelay.get());
warnx("Launch detected: enablecontrol, waiting %8.4fs until full throttle",
(double)(motorDelay.get());
} else {
/* No motor delay set: go directly to enablemotors state */
state = LAUNCHDETECTION_RES_DETECTED_ENABLEMOTORS;
warnx("Launch detected: state: enablemotors (delay not activated)");
warnx("Launch detected: enablemotors (delay not activated)");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment