Move y2023 vision code over to using constants sender
This removes the need for the generated calibration_data.h
Not tested on a pi yet, so I may've messed something up with the
deployment.
Change-Id: Ic46ba861db25033ac21f33f4898cf52afe02f1ab
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/y2023/vision/aprilrobotics_main.cc b/y2023/vision/aprilrobotics_main.cc
index 67b853f..6870ae1 100644
--- a/y2023/vision/aprilrobotics_main.cc
+++ b/y2023/vision/aprilrobotics_main.cc
@@ -1,6 +1,7 @@
#include "aos/events/shm_event_loop.h"
#include "aos/init.h"
#include "y2023/vision/aprilrobotics.h"
+#include "frc971/constants/constants_sender_lib.h"
DEFINE_string(config, "aos_config.json", "Path to the config file to use.");
@@ -9,6 +10,8 @@
aos::FlatbufferDetachedBuffer<aos::Configuration> config =
aos::configuration::ReadConfig(FLAGS_config);
+ frc971::constants::WaitForConstants<Constants>(&config.message());
+
aos::ShmEventLoop event_loop(&config.message());
AprilRoboticsDetector detector(&event_loop, "/camera");