blob: 3086e99dbe11df9671aa330e89bdd9cd9edab948 [file] [log] [blame]
James Kuszmauld67f6d22023-02-05 17:37:25 -08001#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
6namespace y2023 {
7void 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_