commit | 9fe68f73d944037b507c3bb0fbfc7f862342c000 | [log] [tgz] |
---|---|---|
author | Austin Schuh <austin.linux@gmail.com> | Sat Aug 10 19:32:03 2019 -0700 |
committer | Austin Schuh <austin.linux@gmail.com> | Sat Aug 17 18:14:55 2019 -0700 |
tree | 9672f3afd7c7766c9882d43ff1a6915e159a0301 | |
parent | 4ac96a8f593b84de2773be5ac458656a51d9bc17 [diff] [blame] |
Convert control loop tests over to simulated event loop This makes it so that we properly only use ShmEventLoop for running in realtime on a robot. Very nice. Change-Id: I46b770b336f59e08cfaf28511b3bd5689f72fff1
diff --git a/y2016/control_loops/superstructure/superstructure_main.cc b/y2016/control_loops/superstructure/superstructure_main.cc index 435724b..00fa7dd 100644 --- a/y2016/control_loops/superstructure/superstructure_main.cc +++ b/y2016/control_loops/superstructure/superstructure_main.cc
@@ -4,11 +4,14 @@ #include "aos/init.h" int main() { - ::aos::Init(); + ::aos::InitNRT(true); + ::aos::ShmEventLoop event_loop; ::y2016::control_loops::superstructure::Superstructure superstructure( &event_loop); - superstructure.Run(); + + event_loop.Run(); + ::aos::Cleanup(); return 0; }