blob: 676c6b75f0e03da0a375302f6b511fcb1ec9338d [file] [log] [blame]
Nikolai Sohmers3cc1fc22024-05-04 12:27:58 -07001#include "y2024_swerve/constants.h"
Maxwell Hendersonf63a0d92023-06-24 14:49:51 -07002
3#include <cstdint>
4
Austin Schuh99f7c6a2024-06-25 22:07:44 -07005#include "absl/log/check.h"
6#include "absl/log/log.h"
Maxwell Hendersonf63a0d92023-06-24 14:49:51 -07007
8#include "aos/network/team_number.h"
9
Nikolai Sohmers3cc1fc22024-05-04 12:27:58 -070010namespace y2024_swerve::constants {
Maxwell Hendersonf63a0d92023-06-24 14:49:51 -070011Values 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
50Values MakeValues() { return MakeValues(aos::network::GetTeamNumber()); }
Nikolai Sohmers3cc1fc22024-05-04 12:27:58 -070051} // namespace y2024_swerve::constants