James (Peilun) Li | a70e575 | 2024-09-18 20:43:00 -0700 | [diff] [blame^] | 1 | #include "y2024_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" |
| 11 | #include "absl/log/check.h" |
| 12 | #include "absl/log/log.h" |
| 13 | |
| 14 | #include "aos/mutex/mutex.h" |
| 15 | #include "aos/network/team_number.h" |
| 16 | |
| 17 | namespace y2024_bot3::constants { |
| 18 | |
| 19 | Values 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 kThirdRobotTeamNumber: |
| 30 | break; |
| 31 | |
| 32 | default: |
| 33 | LOG(FATAL) << "unknown team: " << team; |
| 34 | } |
| 35 | |
| 36 | return r; |
| 37 | } |
| 38 | |
| 39 | Values MakeValues() { return MakeValues(aos::network::GetTeamNumber()); } |
| 40 | |
| 41 | } // namespace y2024_bot3::constants |