Require non-negative times for AOS timers
Linux doesn't like negative monotonic clock times, so disallow them.
In order to support this, LogReader now does not schedule events at
times known to be in the past (this should be a no-op for simulated
event loops, but for realtime replay with non-zero clock offsets will
avoid scheduling events too far in the past).
References: PRO-14846
Change-Id: Ieb4bf58c5e1083ff30c7df7bfddff356c95ba9ba
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/y2020/control_loops/drivetrain/localizer_test.cc b/y2020/control_loops/drivetrain/localizer_test.cc
index f0bcd88..91b5505 100644
--- a/y2020/control_loops/drivetrain/localizer_test.cc
+++ b/y2020/control_loops/drivetrain/localizer_test.cc
@@ -91,7 +91,7 @@
return locations;
}
-constexpr std::chrono::seconds kPiTimeOffset(-10);
+constexpr std::chrono::seconds kPiTimeOffset(10);
} // namespace
namespace chrono = std::chrono;