James Kuszmaul | 313e9ce | 2024-02-11 17:47:33 -0800 | [diff] [blame^] | 1 | #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 | |
| 7 | DEFINE_string(config, "aos_config.json", "Path to the config file to use."); |
| 8 | |
| 9 | int 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 | } |