Make discontinuous splines error more useful
It wasn't showing enough digits to tell the problem :(
Change-Id: I2727055480559c6987aed4bf60008f9d89200628
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/frc971/control_loops/drivetrain/distance_spline.cc b/frc971/control_loops/drivetrain/distance_spline.cc
index a1f19cd..c200b55 100644
--- a/frc971/control_loops/drivetrain/distance_spline.cc
+++ b/frc971/control_loops/drivetrain/distance_spline.cc
@@ -48,8 +48,8 @@
if (!ddend0.isApprox(ddstart1, 1e-6)) {
AOS_LOG(
ERROR,
- "Splines %d and %d don't line up in the second derivative. [%f, "
- "%f] != [%f, %f]\n",
+ "Splines %d and %d don't line up in the second derivative. [%.7f, "
+ "%.7f] != [%.7f, %.7f]\n",
static_cast<int>(i - 1), static_cast<int>(i), ddend0(0, 0),
ddend0(1, 0), ddstart1(0, 0), ddstart1(1, 0));
}