From d7fc0ee53cce11a6cf9af660fe86c550b6808ce8 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 23 Sep 2015 22:42:36 +0200 Subject: [PATCH] Launch detection: Fix print statement --- src/lib/launchdetection/CatapultLaunchMethod.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/launchdetection/CatapultLaunchMethod.cpp b/src/lib/launchdetection/CatapultLaunchMethod.cpp index d514d895f4..63efe81f3c 100644 --- a/src/lib/launchdetection/CatapultLaunchMethod.cpp +++ b/src/lib/launchdetection/CatapultLaunchMethod.cpp @@ -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)"); } }