blob: 1f4c0bcd074212bcece0eed3d7a0e6bff8563054 [file] [log] [blame]
Niko Sohmers3860f8a2024-01-12 21:05:19 -08001#include "y2024/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"
Niko Sohmers3860f8a2024-01-12 21:05:19 -080013
14#include "aos/mutex/mutex.h"
15#include "aos/network/team_number.h"
16
Stephan Pleinesf63bde82024-01-13 15:59:33 -080017namespace y2024::constants {
Niko Sohmers3860f8a2024-01-12 21:05:19 -080018
19Values MakeValues(uint16_t team) {
20 LOG(INFO) << "creating a Constants for team: " << team;
21
22 Values r;
23
24 switch (team) {
25 // A set of constants for tests.
26 case 1:
27 break;
28
29 case kCompTeamNumber:
30 break;
31
32 case kPracticeTeamNumber:
33 break;
34
35 case kCodingRobotTeamNumber:
36 break;
37
38 default:
39 LOG(FATAL) << "unknown team: " << team;
Niko Sohmers3860f8a2024-01-12 21:05:19 -080040 }
41
42 return r;
43}
44
45Values MakeValues() { return MakeValues(aos::network::GetTeamNumber()); }
46
Stephan Pleinesf63bde82024-01-13 15:59:33 -080047} // namespace y2024::constants