James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame^] | 1 | #include "y2023/constants/constants_generated.h" |
| 2 | #include "y2023/constants/constants_list_generated.h" |
| 3 | #include "aos/events/simulated_event_loop.h" |
| 4 | #include "aos/testing/path.h" |
| 5 | |
| 6 | namespace y2023 { |
| 7 | void SendSimulationConstants(aos::SimulatedEventLoopFactory *factory, int team, |
| 8 | std::string constants_path) { |
| 9 | for (const aos::Node *node : factory->nodes()) { |
| 10 | std::unique_ptr<aos::EventLoop> event_loop = |
| 11 | factory->MakeEventLoop("constants_sender", node); |
| 12 | frc971::constants::ConstantSender<Constants, ConstantsList> sender( |
| 13 | event_loop.get(), constants_path, team, "/constants"); |
| 14 | } |
| 15 | } |
| 16 | } // namespace y2023 |
| 17 | |
| 18 | #endif // Y2023_CONFIGURATION_SIMULATED_CONFIG_SENDER_H_ |