actions and control loops: frc971 shall depend on aos
And not the other way around.
Define the loop frequency in actor.h and use that in
control_loop.h. Fix dependencies (and add missing dependency of
actor on event_loop).
Signed-off-by: Stephan Pleines <pleines.stephan@gmail.com>
Change-Id: Ieec0b3eb1c66737e1ed19e6bdee40655524f4016
diff --git a/y2023/autonomous/autonomous_actor.cc b/y2023/autonomous/autonomous_actor.cc
index 652fe66..a23f693 100644
--- a/y2023/autonomous/autonomous_actor.cc
+++ b/y2023/autonomous/autonomous_actor.cc
@@ -521,7 +521,7 @@
::aos::time::PhasedLoop phased_loop(frc971::controls::kLoopFrequency,
event_loop()->monotonic_now(),
- ActorBase::kLoopOffset);
+ aos::common::actions::kLoopOffset);
bool loaded = false;
while (!loaded) {
@@ -604,7 +604,7 @@
::aos::time::PhasedLoop phased_loop(frc971::controls::kLoopFrequency,
event_loop()->monotonic_now(),
- ActorBase::kLoopOffset);
+ aos::common::actions::kLoopOffset);
bool at_goal = false;
while (!at_goal) {