From ff425ca2b6ec942e868f5f6ae68a377f9b2a71a8 Mon Sep 17 00:00:00 2001 From: ary Date: Wed, 4 Oct 2023 11:22:16 -0400 Subject: [PATCH] update main --- RELENTLESS/src/main.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/RELENTLESS/src/main.cpp b/RELENTLESS/src/main.cpp index 2db2d89..01b5de9 100644 --- a/RELENTLESS/src/main.cpp +++ b/RELENTLESS/src/main.cpp @@ -33,24 +33,7 @@ void initialize() { pros::delay(500); // legacy ports configure - /* - When the robot first starts up we want to do a couple things: - - Adjust the drivetrain curve bottons so it does not interfere with any of the driver controls. - - Enable the joystick curve - - Enable active break on the drive - - Active break is a P controller applied to the drivetrain in order to help it maintain it's position, resisting external forces. - - - */ - - chassis.set_curve_buttons(pros::E_CONTROLLER_DIGITAL_LEFT, pros::E_CONTROLLER_DIGITAL_RIGHT); - chassis.toggle_modify_curve_with_controller(true); - chassis.set_active_brake(0.1); - chassis.set_curve_default(0.375, 0.375); - - /* Adjust the adjust the factor by which the drive velocity is adjusted */ - chassis.set_joystick_drivescale(1.0); - chassis.set_joystick_turnscale(1.0); - + chassisInit(); configureConstants(); configureExitConditions();