Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 1 | #include "aos/events/shm_event_loop.h" |
| 2 | #include "aos/init.h" |
| 3 | #include "y2024/control_loops/superstructure/superstructure.h" |
| 4 | |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 5 | ABSL_FLAG(std::string, arm_trajectories, "arm_trajectories_generated.bfbs", |
| 6 | "The path to the generated arm trajectories bfbs file."); |
Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 7 | |
| 8 | using y2024::control_loops::superstructure::Superstructure; |
| 9 | |
| 10 | int 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 Kujawa | 7a79960 | 2024-02-23 12:27:47 -0800 | [diff] [blame] | 20 | Superstructure superstructure(&event_loop); |
Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 21 | |
| 22 | event_loop.Run(); |
| 23 | |
| 24 | return 0; |
| 25 | } |