blob: 5a64b7510e09ec7750ae335fe1089505eb062054 [file] [log] [blame]
Yash Maheshwarie0b25c52024-05-22 20:23:36 -07001#ifndef Y2024_SWERVE_CONSTANTS_SIMULATED_CONFIG_SENDER_H_
2#define Y2024_SWERVE_CONSTANTS_SIMULATED_CONFIG_SENDER_H_
3
4#include <set>
5
6#include "aos/events/simulated_event_loop.h"
7#include "aos/testing/path.h"
8
9namespace y2024_swerve {
10// Returns true, to allow this to be easily called in the initializer list of a
11// constructor.
12// If node_names is specified, we limit ourselves to sending constants on the
13// specified nodes.
14bool SendSimulationConstants(
15 aos::SimulatedEventLoopFactory *factory, int team,
16 std::string constants_path = aos::testing::ArtifactPath(
17 "y2024_swerve/constants/test_constants.json"),
18 const std::set<std::string_view> &node_names = {});
19} // namespace y2024_swerve
20
21#endif // Y2024_SWERVE_CONSTANTS_SIMULATED_CONFIG_SENDER_H_