1#include "robot/auton.h"
15 if (pros::c::registry_get_plugged_type(13) == pros::c::E_DEVICE_IMU) {
17 chassis.setPose(36.994, -58.128, 0);
18 chassis.follow(
"home_side_auton_path_1.txt", 2000, 15);
19 chassis.follow(
"home_side_auton_path_2.txt", 2000, 15);
20 chassis.follow(
"home_side_auton_path_3.txt", 2000, 15);
21 chassis.follow(
"home_side_auton_path_4.txt", 2000, 15);
22 chassis.follow(
"home_side_auton_path_5.txt", 2000, 15);
35 if (pros::c::registry_get_plugged_type(13) == pros::c::E_DEVICE_IMU) {
37 chassis.setPose(-36.851, -58.638, 0);
38 chassis.follow(
"far_side_auton_path_1.txt", 2000, 15);
39 chassis.follow(
"far_side_auton_path_2.txt", 2000, 15);
40 chassis.follow(
"far_side_auton_path_3.txt", 2000, 15);
41 chassis.follow(
"far_side_auton_path_4.txt", 2000, 15);
63 if (autono ==
false) {
85 if(
controller.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_RIGHT)) {
The Autonomous class contains classes and functions related to the robot's autonomous behavior.
void AutoDrive(Puncher &puncher, bool autono)
Drives the robot autonomously.
void Auton1()
Runs the autonomous path for the far side defensive game strategy.
static int auton
Sets the number of the autonomous program to use.
void Auton2()
Runs the autonomous path for the near side offensive game strategy.
void AutonSwitcher()
Switches the autonomous program.
void Auton3(Puncher &puncher)
Runs the puncher routine for the Skills Challenge.
Represents a Puncher mechanism for a robot.
void run(int autonVal)
Runs the puncher based on the given autonomous value.
Contains global variables and type definitions for the Robot namespace.
pros::Controller controller
Contains all objects generated by the 1516B team - Contains all of the subsystems,...