Maxwell Henderson | f63a0d9 | 2023-06-24 14:49:51 -0700 | [diff] [blame^] | 1 | #include "y2023_bot4/constants.h" |
| 2 | |
| 3 | #include <cstdint> |
| 4 | |
| 5 | #include "glog/logging.h" |
| 6 | |
| 7 | #include "aos/network/team_number.h" |
| 8 | |
| 9 | namespace y2023_bot4 { |
| 10 | namespace constants { |
| 11 | Values MakeValues(uint16_t team) { |
| 12 | LOG(INFO) << "creating a Constants for team: " << team; |
| 13 | Values r; |
| 14 | auto *const front_left_zeroing_constants = &r.front_left_zeroing_constants; |
| 15 | auto *const front_right_zeroing_constants = &r.front_right_zeroing_constants; |
| 16 | auto *const back_left_zeroing_constants = &r.back_left_zeroing_constants; |
| 17 | auto *const back_right_zeroing_constants = &r.back_right_zeroing_constants; |
| 18 | |
| 19 | front_left_zeroing_constants->average_filter_size = 0; |
| 20 | front_left_zeroing_constants->one_revolution_distance = 2 * M_PI; |
| 21 | front_left_zeroing_constants->measured_absolute_position = 0.76761395509829; |
| 22 | front_left_zeroing_constants->zeroing_threshold = 0.0; |
| 23 | front_left_zeroing_constants->moving_buffer_size = 0.0; |
| 24 | front_left_zeroing_constants->allowable_encoder_error = 0.0; |
| 25 | |
| 26 | front_right_zeroing_constants->average_filter_size = 0; |
| 27 | front_right_zeroing_constants->one_revolution_distance = 2 * M_PI; |
| 28 | front_right_zeroing_constants->measured_absolute_position = 0.779403958443922; |
| 29 | front_right_zeroing_constants->zeroing_threshold = 0.0; |
| 30 | front_right_zeroing_constants->moving_buffer_size = 0.0; |
| 31 | front_right_zeroing_constants->allowable_encoder_error = 0.0; |
| 32 | |
| 33 | back_left_zeroing_constants->average_filter_size = 0; |
| 34 | back_left_zeroing_constants->one_revolution_distance = 2 * M_PI; |
| 35 | back_left_zeroing_constants->measured_absolute_position = 0.053439698061417; |
| 36 | back_left_zeroing_constants->zeroing_threshold = 0.0; |
| 37 | back_left_zeroing_constants->moving_buffer_size = 0.0; |
| 38 | back_left_zeroing_constants->allowable_encoder_error = 0.0; |
| 39 | |
| 40 | back_right_zeroing_constants->average_filter_size = 0; |
| 41 | back_right_zeroing_constants->one_revolution_distance = 2 * M_PI; |
| 42 | back_right_zeroing_constants->measured_absolute_position = 0.719329333121509; |
| 43 | back_right_zeroing_constants->zeroing_threshold = 0.0; |
| 44 | back_right_zeroing_constants->moving_buffer_size = 0.0; |
| 45 | back_right_zeroing_constants->allowable_encoder_error = 0.0; |
| 46 | |
| 47 | return r; |
| 48 | } |
| 49 | |
| 50 | Values MakeValues() { return MakeValues(aos::network::GetTeamNumber()); } |
| 51 | } // namespace constants |
| 52 | } // namespace y2023_bot4 |