Fix sign error in camera timestamp
When we finally got things working today I briefly checked the logs and
saw the localizer complaining about getting frames from the future.
Change-Id: Ida24a56633a6f4f2c10dedfe026f5c72013b9990
diff --git a/y2019/wpilib_interface.cc b/y2019/wpilib_interface.cc
index a66f784..2b21eb8 100644
--- a/y2019/wpilib_interface.cc
+++ b/y2019/wpilib_interface.cc
@@ -324,7 +324,7 @@
for (const auto &received : unpacked->frames) {
auto to_send = control_loops::drivetrain::camera_frames.MakeMessage();
to_send->timestamp =
- std::chrono::nanoseconds((now + received.age).time_since_epoch())
+ std::chrono::nanoseconds((now - received.age).time_since_epoch())
.count();
to_send->num_targets = received.targets.size();
for (size_t i = 0; i < received.targets.size(); ++i) {