blob: bba2dd7b25f4dcc5e48185f240dc38b924f98e87 [file] [log] [blame]
Ravago Jonese12b7902022-02-04 22:50:44 -08001#include "aos/events/shm_event_loop.h"
2#include "aos/init.h"
3#include "y2022/localizer/imu.h"
4
5DEFINE_string(config, "config.json", "Path to the config file to use.");
6
7int main(int argc, char *argv[]) {
8 aos::InitGoogle(&argc, &argv);
9
10 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
11 aos::configuration::ReadConfig(FLAGS_config);
12
13 aos::ShmEventLoop event_loop(&config.message());
14 y2022::localizer::Imu imu(&event_loop);
15
16 event_loop.Run();
17
18 return 0;
19}