This commit is contained in:
ary 2023-12-02 00:04:20 -05:00
parent 08bdcc9ba6
commit fd2a6157e2

View File

@ -148,9 +148,9 @@ void opcontrol() {
while (true) {
// get joystick positions
int leftY = controller.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_Y);
int rightX = controller.get_analog(pros::E_CONTROLLER_ANALOG_RIGHT_X);
int rightY = controller.get_analog(pros::E_CONTROLLER_ANALOG_RIGHT_Y);
// move the chassis with curvature drive
chassis.curvature(leftY, rightX);
chassis.tank(leftY, rightY);
// delay to save resources
pros::delay(10);
}