Switch getting time to event loop from factory
The factory will not be a good source of time going forwards as we get
different node times.
Change-Id: I6ec1d727bbd3355b48ce440e932bcdcb3efc7d25
diff --git a/aos/controls/control_loop_test.h b/aos/controls/control_loop_test.h
index a2dbb7b..25e1a45 100644
--- a/aos/controls/control_loop_test.h
+++ b/aos/controls/control_loop_test.h
@@ -102,7 +102,7 @@
}
::aos::monotonic_clock::time_point monotonic_now() {
- return event_loop_factory_.monotonic_now();
+ return robot_status_event_loop_->monotonic_now();
}
::std::chrono::nanoseconds dt() const { return dt_; }