blob: 36c1891707c64292291ede9eeac2bbeb96288dd9 [file] [log] [blame]
Ariv Diggi0af59c02023-10-07 13:15:39 -07001#include "aos/events/simulated_event_loop.h"
2#include "aos/testing/path.h"
3#include "frc971/constants/constants_sender_lib.h"
4#include "y2023_bot3/constants/constants_generated.h"
5#include "y2023_bot3/constants/constants_list_generated.h"
6
7namespace y2023_bot3 {
8bool SendSimulationConstants(aos::SimulatedEventLoopFactory *factory, int team,
9 std::string constants_path) {
10 for (const aos::Node *node : factory->nodes()) {
11 std::unique_ptr<aos::EventLoop> event_loop =
12 factory->MakeEventLoop("constants_sender", node);
13 frc971::constants::ConstantSender<Constants, ConstantsList> sender(
14 event_loop.get(), constants_path, team, "/constants");
15 }
16 return true;
17}
18} // namespace y2023_bot3