Launch detection: Fix print statement

This commit is contained in:
Lorenz Meier 2015-09-23 22:42:36 +02:00
parent 0da9b4d715
commit d7fc0ee53c
1 changed files with 3 additions and 3 deletions

View File

@ -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)");
}
}