![]() |
1516X Push Back 1.0
1516X's robot code for the 2025-2026 VEX Robotics Competition
|
#include "globals.h"#include "pros/colors.h"#include "velocityController.h"#include <algorithm>#include <cmath>Go to the source code of this file.
Functions | |
| void | calibrate_vision () |
| VoltageController | driveController (5.8432642308, 0.213526937516, 1.14429410811, 0.906356177095, 0.347072436421, 11.4953431776, 54.5797495382, 0.05, TRACK_WIDTH_M) |
| bool | alignToGoal (int SIG_NUM) |
Variables | |
| static constexpr float | INCH_TO_METER = 0.0254f |
| static constexpr float | TRACK_WIDTH_M = 12.8f * INCH_TO_METER |
| static constexpr float | wheel_circumference = (float)3.25 * M_PI * INCH_TO_METER |
| static constexpr float | gear_ratio = 4.0f / 3.0f |
| static constexpr float | rpm_to_mps_factor = (wheel_circumference / gear_ratio) / 60.0f |
| bool alignToGoal | ( | int | SIG_NUM | ) |
Definition at line 32 of file visonAlignment.cpp.
References controller, driveController(), leftMotors, rightMotors, rpm_to_mps_factor, and vision_sensor().
Referenced by opcontrol().
| void calibrate_vision | ( | ) |
Definition at line 8 of file visonAlignment.cpp.
References calibrate_vision(), and vision_sensor().
Referenced by calibrate_vision(), and initialize().
| VoltageController driveController | ( | 5. | 8432642308, |
| 0. | 213526937516, | ||
| 1. | 14429410811, | ||
| 0. | 906356177095, | ||
| 0. | 347072436421, | ||
| 11. | 4953431776, | ||
| 54. | 5797495382, | ||
| 0. | 05, | ||
| TRACK_WIDTH_M | ) |
References TRACK_WIDTH_M.
Referenced by alignToGoal().
|
staticconstexpr |
Definition at line 24 of file visonAlignment.cpp.
|
staticconstexpr |
Definition at line 21 of file visonAlignment.cpp.
|
staticconstexpr |
Definition at line 25 of file visonAlignment.cpp.
Referenced by alignToGoal().
|
staticconstexpr |
Definition at line 22 of file visonAlignment.cpp.
Referenced by driveController().
|
staticconstexpr |
Definition at line 23 of file visonAlignment.cpp.