blob: 25466d27712c70ac01a971047783f8c47f4d677b [file] [log] [blame]
James Kuszmaul313e9ce2024-02-11 17:47:33 -08001#include "aos/events/shm_event_loop.h"
2#include "aos/init.h"
3#include "frc971/constants/constants_sender_lib.h"
4#include "y2024/control_loops/drivetrain/drivetrain_base.h"
5#include "y2024/localizer/localizer.h"
6
7DEFINE_string(config, "aos_config.json", "Path to the config file to use.");
8
9int main(int argc, char *argv[]) {
10 aos::InitGoogle(&argc, &argv);
11
12 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
13 aos::configuration::ReadConfig(FLAGS_config);
14
15 frc971::constants::WaitForConstants<y2024::Constants>(&config.message());
16
17 aos::ShmEventLoop event_loop(&config.message());
18 y2024::localizer::Localizer localizer(&event_loop);
19
20 event_loop.Run();
21
22 return 0;
23}