blob: 58932c7fa2c9b91d2823be813159e2c1a3ea5b90 [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
20 std::shared_ptr<const y2024::constants::Values> values =
21 std::make_shared<const y2024::constants::Values>(
22 y2024::constants::MakeValues());
23 Superstructure superstructure(&event_loop, values);
24
25 event_loop.Run();
26
27 return 0;
28}