![]() |
1516X Push Back 1.0
1516X's robot code for the 2025-2026 VEX Robotics Competition
|
Go to the source code of this file.
Classes | |
| struct | SensorConfig |
| struct | SensorReadings |
| struct | distancePose |
Functions | |
| distancePose | calculateGlobalPosition (const SensorReadings &front_data, const SensorReadings &left_data, const SensorReadings &right_data, const SensorReadings &back_data, double heading_deg) |
| distancePose | distanceReset (bool setPose=false) |
| distancePose | distanceReset (bool left_use, bool right_use, bool front_use, bool back_use, bool setPose) |
Variables | |
| const double | MM_TO_IN = 0.0393701 |
| const double | FIELD_WIDTH = 3657.6 * MM_TO_IN |
| const double | FIELD_HEIGHT = 3657.6 * MM_TO_IN |
| const double | HALF_WIDTH = FIELD_WIDTH / 2.0 |
| const double | HALF_HEIGHT = FIELD_HEIGHT / 2.0 |
| const double | MAX_SENSOR_RANGE = 1500 * MM_TO_IN |
| const double | MIN_SENSOR_RANGE = 10 * MM_TO_IN |
| bool | controller_screen_avilable |
| const SensorConfig | front_sensor_cfg = {-0.75, -3, 0} |
| const SensorConfig | left_sensor_cfg = {-0.5, -6.4, 90} |
| const SensorConfig | right_sensor_cfg = {-0.5, 6.3, -90} |
| const SensorConfig | back_sensor_cfg = {-10.5, -3, 180} |
| distancePose calculateGlobalPosition | ( | const SensorReadings & | front_data, |
| const SensorReadings & | left_data, | ||
| const SensorReadings & | right_data, | ||
| const SensorReadings & | back_data, | ||
| double | heading_deg ) |
Definition at line 39 of file distanceReset.cpp.
References back_sensor_cfg, backDistance(), chassis, SensorReadings::dist_mm, SensorConfig::forward_offset, front_sensor_cfg, frontDistance(), HALF_HEIGHT, HALF_WIDTH, left_sensor_cfg, leftDistance(), MAX_SENSOR_RANGE, MIN_SENSOR_RANGE, MM_TO_IN, right_sensor_cfg, rightDistance(), sensors, SensorConfig::strafe_offset, distancePose::using_odom_x, distancePose::using_odom_y, distancePose::x, and distancePose::y.
Referenced by distanceReset(), and distanceReset().
| distancePose distanceReset | ( | bool | left_use, |
| bool | right_use, | ||
| bool | front_use, | ||
| bool | back_use, | ||
| bool | setPose ) |
Definition at line 203 of file distanceReset.cpp.
References backDistance(), calculateGlobalPosition(), chassis, frontDistance(), leftDistance(), rightDistance(), distancePose::x, and distancePose::y.
| distancePose distanceReset | ( | bool | setPose = false | ) |
Definition at line 189 of file distanceReset.cpp.
References backDistance(), calculateGlobalPosition(), chassis, frontDistance(), leftDistance(), rightDistance(), distancePose::x, and distancePose::y.
Referenced by awp_auton(), carry_auton(), left_auton(), right_auton(), and skills_auton().
| const SensorConfig back_sensor_cfg = {-10.5, -3, 180} |
Definition at line 24 of file distanceReset.cpp.
Referenced by calculateGlobalPosition().
| bool controller_screen_avilable |
Definition at line 13 of file distanceReset.cpp.
| const double FIELD_HEIGHT = 3657.6 * MM_TO_IN |
Definition at line 7 of file distanceReset.cpp.
| const double FIELD_WIDTH = 3657.6 * MM_TO_IN |
Definition at line 6 of file distanceReset.cpp.
| const SensorConfig front_sensor_cfg = {-0.75, -3, 0} |
Definition at line 21 of file distanceReset.cpp.
Referenced by calculateGlobalPosition().
| const double HALF_HEIGHT = FIELD_HEIGHT / 2.0 |
Definition at line 9 of file distanceReset.cpp.
Referenced by calculateGlobalPosition().
| const double HALF_WIDTH = FIELD_WIDTH / 2.0 |
Definition at line 8 of file distanceReset.cpp.
Referenced by calculateGlobalPosition().
| const SensorConfig left_sensor_cfg = {-0.5, -6.4, 90} |
Definition at line 22 of file distanceReset.cpp.
Referenced by calculateGlobalPosition().
| const double MAX_SENSOR_RANGE = 1500 * MM_TO_IN |
Definition at line 10 of file distanceReset.cpp.
Referenced by calculateGlobalPosition().
| const double MIN_SENSOR_RANGE = 10 * MM_TO_IN |
Definition at line 11 of file distanceReset.cpp.
Referenced by calculateGlobalPosition().
| const double MM_TO_IN = 0.0393701 |
Definition at line 5 of file distanceReset.cpp.
Referenced by calculateGlobalPosition().
| const SensorConfig right_sensor_cfg = {-0.5, 6.3, -90} |
Definition at line 23 of file distanceReset.cpp.
Referenced by calculateGlobalPosition().