blob: 88dddf1f147f08b1e544897551539dbdffdfe3d0 [file] [log] [blame]
milind-u62d4a8e2021-10-11 16:08:41 -07001#include "y2020/constants.h"
Stephan Massaltd021f972020-01-05 20:41:23 -08002#include "y2020/control_loops/superstructure/superstructure.h"
3
4#include "aos/events/shm_event_loop.h"
5#include "aos/init.h"
6
Austin Schuh094d09b2020-11-20 23:26:52 -08007int main(int argc, char **argv) {
8 ::aos::InitGoogle(&argc, &argv);
Stephan Massaltd021f972020-01-05 20:41:23 -08009
10 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
Austin Schuhc5fa6d92022-02-25 14:36:28 -080011 aos::configuration::ReadConfig("aos_config.json");
Stephan Massaltd021f972020-01-05 20:41:23 -080012
13 ::aos::ShmEventLoop event_loop(&config.message());
milind-u62d4a8e2021-10-11 16:08:41 -070014 ::y2020::constants::InitValues();
Stephan Massaltd021f972020-01-05 20:41:23 -080015 ::y2020::control_loops::superstructure::Superstructure superstructure(
16 &event_loop);
17
18 event_loop.Run();
19
Stephan Massaltd021f972020-01-05 20:41:23 -080020 return 0;
21}