1#include "robot/drivetrain.h"
13 return ControllerInput;
21 int left =
controller.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_Y);
22 int right =
controller.get_analog(pros::E_CONTROLLER_ANALOG_RIGHT_X);
46 int left =
controller.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_Y);
47 int right =
controller.get_analog(pros::E_CONTROLLER_ANALOG_RIGHT_Y);
79 if(
controller.get_digital_new_press(pros::E_CONTROLLER_DIGITAL_DOWN)) {
Represents the drivetrain of the robot.
void run()
Runs the drivetrain.
int driveMode
The current drive train mode, between arcade (0) and tank (1).
void SwitchDrive()
Switches the DriveTrain mode between arcade and tank drive.
void ArcadeDrive()
Drives the robot using arcade drive.
int CheckDeadzone(int entry)
Checks if the controller input is inside the deadzone range.
int deadzone
The deadzone value for the joystick.
Drivetrain()
Initializes the Drivetrain object.
void TankDrive()
Drives the robot using tank drive.
Contains global variables and type definitions for the Robot namespace.
pros::Controller controller
pros::Motor_Group drive_right
pros::Motor_Group drive_left
Contains all objects generated by the 1516B team - Contains all of the subsystems,...