y2019 robot code starts!
We are now deploying the config, and all the missing locations are now
available. Some channels got renamed to be more user friendly.
Change-Id: Idc771998b24a769994ec80f3aee292b0d1ac6240
diff --git a/y2019/vision/server/server.cc b/y2019/vision/server/server.cc
index 91dc61a..99a3727 100644
--- a/y2019/vision/server/server.cc
+++ b/y2019/vision/server/server.cc
@@ -158,12 +158,11 @@
::aos::RingBuffer<DrivetrainPosition, 200> drivetrain_log;
event_loop.MakeWatcher(
- "/drivetrain",
- [websocket_handler, server, &latest_frames, &last_target_time,
- &drivetrain_status_fetcher, &superstructure_status_fetcher,
- &last_send_time, &drivetrain_log,
- &debug_data](const ::y2019::control_loops::drivetrain::CameraFrame
- &camera_frames) {
+ "/camera", [websocket_handler, server, &latest_frames, &last_target_time,
+ &drivetrain_status_fetcher, &superstructure_status_fetcher,
+ &last_send_time, &drivetrain_log, &debug_data](
+ const ::y2019::control_loops::drivetrain::CameraFrame
+ &camera_frames) {
while (drivetrain_status_fetcher.FetchNext()) {
DrivetrainPosition drivetrain_position{
drivetrain_status_fetcher.context().monotonic_sent_time,