Launch detection: Fix print statement

This commit is contained in:
Lorenz Meier
2015-09-23 22:42:36 +02:00
parent 0da9b4d715
commit d7fc0ee53c
@@ -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)");
} }
} }