blob: 16803cf705b47d6b54be85ce7b8929a41b9d8712 [file] [log] [blame]
Brian Silverman17f503e2015-08-02 18:17:18 -07001#include "y2014/control_loops/claw/claw.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
Austin Schuh094d09b2020-11-20 23:26:52 -08006int main(int argc, char **argv) {
7 ::aos::InitGoogle(&argc, &argv);
Austin Schuh9fe68f72019-08-10 19:32:03 -07008
Alex Perrycb7da4b2019-08-28 19:35:56 -07009 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
Austin Schuhc5fa6d92022-02-25 14:36:28 -080010 aos::configuration::ReadConfig("aos_config.json");
Alex Perrycb7da4b2019-08-28 19:35:56 -070011
12 ::aos::ShmEventLoop event_loop(&config.message());
13 ::y2014::control_loops::claw::ClawMotor claw(&event_loop);
Austin Schuh9fe68f72019-08-10 19:32:03 -070014
15 event_loop.Run();
16
Brian Silverman17f503e2015-08-02 18:17:18 -070017 return 0;
18}