blob: 3200eadf519cc8fbeab756739cf44400eb3f91a7 [file] [log] [blame]
Sabina Davis8d20ca82018-02-19 13:17:45 -08001#include "y2018/control_loops/superstructure/superstructure.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"
Sabina Davis8d20ca82018-02-19 13:17:45 -08005
6int main() {
Brian Silverman8f8debf2018-03-11 19:30:23 -07007 ::aos::InitNRT(true);
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());
Austin Schuh55a13dc2019-01-27 22:39:03 -080013 ::y2018::control_loops::superstructure::Superstructure superstructure(
14 &event_loop);
Austin Schuh9fe68f72019-08-10 19:32:03 -070015
16 event_loop.Run();
17
Sabina Davis8d20ca82018-02-19 13:17:45 -080018 ::aos::Cleanup();
19 return 0;
20}