blob: 6f3b1f277277549cb10bd3f2b98a30c9e08167c4 [file] [log] [blame]
Brian Silverman17f503e2015-08-02 18:17:18 -07001#include "y2014/control_loops/shooter/shooter.h"
2
Alex Perrycb7da4b2019-08-28 19:35:56 -07003#include "aos/events/shm_event_loop.h"
John Park398c74a2018-10-20 21:17:39 -07004#include "aos/init.h"
Brian Silverman17f503e2015-08-02 18:17:18 -07005
6int main() {
James Kuszmaulad8a8082020-02-14 21:21:58 -08007 ::aos::InitNRT();
Austin Schuh9fe68f72019-08-10 19:32:03 -07008
Alex Perrycb7da4b2019-08-28 19:35:56 -07009 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
10 aos::configuration::ReadConfig("config.json");
11
12 ::aos::ShmEventLoop event_loop(&config.message());
13 ::y2014::control_loops::shooter::ShooterMotor shooter(&event_loop);
Austin Schuh9fe68f72019-08-10 19:32:03 -070014
15 event_loop.Run();
16
Brian Silverman17f503e2015-08-02 18:17:18 -070017 ::aos::Cleanup();
18 return 0;
19}