blob: 625e23362d29b5ed8b6b7a02762be840a3987550 [file] [log] [blame]
Ariv Diggi0af59c02023-10-07 13:15:39 -07001#include "y2023_bot3/constants.h"
2
3#include <cinttypes>
4#include <map>
5
6#if __has_feature(address_sanitizer)
7#include "sanitizer/lsan_interface.h"
8#endif
9
10#include "absl/base/call_once.h"
Austin Schuh99f7c6a2024-06-25 22:07:44 -070011#include "absl/log/check.h"
12#include "absl/log/log.h"
Ariv Diggi0af59c02023-10-07 13:15:39 -070013
14#include "aos/mutex/mutex.h"
15#include "aos/network/team_number.h"
16
Stephan Pleinesf63bde82024-01-13 15:59:33 -080017namespace y2023_bot3::constants {
Ariv Diggi0af59c02023-10-07 13:15:39 -070018
19Values MakeValues(uint16_t team) {
20 LOG(INFO) << "creating a Constants for team: " << team;
21
22 Values r;
Maxwell Henderson43684fa2023-11-06 11:08:06 -080023
Ariv Diggi0af59c02023-10-07 13:15:39 -070024 switch (team) {
25 // A set of constants for tests.
26 case 1:
Ariv Diggi0af59c02023-10-07 13:15:39 -070027 break;
28
29 case kThirdRobotTeamNumber:
Ariv Diggi0af59c02023-10-07 13:15:39 -070030 break;
31
32 default:
33 LOG(FATAL) << "unknown team: " << team;
34 }
35
36 return r;
37}
38
39Values MakeValues() { return MakeValues(aos::network::GetTeamNumber()); }
40
Stephan Pleinesf63bde82024-01-13 15:59:33 -080041} // namespace y2023_bot3::constants