Fix the JSON from the vision server
Change-Id: I31c97acdf6475b352c0d28138663364db808758d
diff --git a/y2019/vision/server/server.cc b/y2019/vision/server/server.cc
index 0253a4c..8dd4e85 100644
--- a/y2019/vision/server/server.cc
+++ b/y2019/vision/server/server.cc
@@ -160,11 +160,11 @@
stream << "\"y\": " << drivetrain_status->y << ",";
stream << "\"theta\": " << drivetrain_status->theta;
if (drivetrain_status->line_follow_logging.frozen) {
- stream << "\"target\": {";
+ stream << ",\"target\": {";
stream << "\"x\": " << drivetrain_status->line_follow_logging.x << ",";
stream << "\"y\": " << drivetrain_status->line_follow_logging.y << ",";
stream << "\"theta\": " << drivetrain_status->line_follow_logging.theta;
- stream << "}\n";
+ stream << "} ";
}
stream << "}\n";