blob: 90c5eb49ef9ad35bb14034f970e8629e4eaac695 [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
Austin Schuh99f7c6a2024-06-25 22:07:44 -07005ABSL_FLAG(std::string, arm_trajectories, "arm_trajectories_generated.bfbs",
6 "The path to the generated arm trajectories bfbs file.");
Niko Sohmers3860f8a2024-01-12 21:05:19 -08007
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}