blob: f83177469fb3dc30d0876b045f88929b78522e71 [file] [log] [blame]
Tyler Chatowe51334a2019-01-20 16:58:16 -08001#include "y2019/control_loops/superstructure/superstructure.h"
2
Alex Perrycb7da4b2019-08-28 19:35:56 -07003#include "aos/events/shm_event_loop.h"
Tyler Chatowe51334a2019-01-20 16:58:16 -08004#include "aos/init.h"
5
Alex Perrycb7da4b2019-08-28 19:35:56 -07006int main(int /*argc*/, char * /*argv*/ []) {
Austin Schuh9fe68f72019-08-10 19:32:03 -07007 ::aos::InitNRT(true);
8
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());
Austin Schuh55a13dc2019-01-27 22:39:03 -080013 ::y2019::control_loops::superstructure::Superstructure superstructure(
14 &event_loop);
Austin Schuh9fe68f72019-08-10 19:32:03 -070015
16 event_loop.Run();
17
Tyler Chatowe51334a2019-01-20 16:58:16 -080018 ::aos::Cleanup();
19 return 0;
20}