blob: 42a5a23a7f56452040aeb541c31eae32bd774139 [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001#include "aos/events/shm_event_loop.h"
John Park398c74a2018-10-20 21:17:39 -07002#include "aos/init.h"
Philipp Schrader790cb542023-07-05 21:06:52 -07003#include "y2017/control_loops/superstructure/superstructure.h"
Austin Schuh7b9a3ba2017-02-19 23:11:45 -08004
Austin Schuh094d09b2020-11-20 23:26:52 -08005int main(int argc, char **argv) {
6 ::aos::InitGoogle(&argc, &argv);
Austin Schuh9fe68f72019-08-10 19:32:03 -07007
Alex Perrycb7da4b2019-08-28 19:35:56 -07008 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
Austin Schuhc5fa6d92022-02-25 14:36:28 -08009 aos::configuration::ReadConfig("aos_config.json");
Alex Perrycb7da4b2019-08-28 19:35:56 -070010
11 ::aos::ShmEventLoop event_loop(&config.message());
Austin Schuh55a13dc2019-01-27 22:39:03 -080012 ::y2017::control_loops::superstructure::Superstructure superstructure(
13 &event_loop);
Austin Schuh9fe68f72019-08-10 19:32:03 -070014
15 event_loop.Run();
16
Austin Schuh7b9a3ba2017-02-19 23:11:45 -080017 return 0;
18}