Convert actions to event loops
The logic gets significantly simpler due to Watchers. But we also get
to port all the users over as well.
Change-Id: Ib4e75951e65f7431acc6c1548b7f1d20da3da295
diff --git a/y2016/actors/superstructure_actor.cc b/y2016/actors/superstructure_actor.cc
index d8537ce..f65d05a 100644
--- a/y2016/actors/superstructure_actor.cc
+++ b/y2016/actors/superstructure_actor.cc
@@ -12,10 +12,9 @@
namespace chrono = ::std::chrono;
-SuperstructureActor::SuperstructureActor(
- actors::SuperstructureActionQueueGroup *s)
+SuperstructureActor::SuperstructureActor(::aos::EventLoop *event_loop)
: aos::common::actions::ActorBase<actors::SuperstructureActionQueueGroup>(
- s) {}
+ event_loop, ".y2016.actors.superstructure_action") {}
bool SuperstructureActor::RunAction(
const actors::SuperstructureActionParams ¶ms) {
@@ -105,11 +104,5 @@
}
}
-::std::unique_ptr<SuperstructureAction> MakeSuperstructureAction(
- const ::y2016::actors::SuperstructureActionParams& params) {
- return ::std::unique_ptr<SuperstructureAction>(new SuperstructureAction(
- &::y2016::actors::superstructure_action, params));
-}
-
} // namespace actors
} // namespace y2016