blob: a5ab8edb908e81e6d6f5a4307c23e6ba6900423d [file] [log] [blame]
Niko Sohmers3860f8a2024-01-12 21:05:19 -08001#include "aos/events/shm_event_loop.h"
2#include "aos/init.h"
3#include "y2024/control_loops/superstructure/superstructure.h"
4
5DEFINE_string(arm_trajectories, "arm_trajectories_generated.bfbs",
6 "The path to the generated arm trajectories bfbs file.");
7
8using y2024::control_loops::superstructure::Superstructure;
9
10int main(int argc, char **argv) {
11 ::aos::InitGoogle(&argc, &argv);
12
13 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
14 aos::configuration::ReadConfig("aos_config.json");
15
16 ::aos::ShmEventLoop event_loop(&config.message());
17
18 frc971::constants::WaitForConstants<y2024::Constants>(&config.message());
19
Filip Kujawa7a799602024-02-23 12:27:47 -080020 Superstructure superstructure(&event_loop);
Niko Sohmers3860f8a2024-01-12 21:05:19 -080021
22 event_loop.Run();
23
24 return 0;
25}