From 9e25e02bfa5840bc4263f40e23b1b6c5424a8b08 Mon Sep 17 00:00:00 2001 From: ary Date: Sat, 23 Sep 2023 13:16:23 -0400 Subject: [PATCH] docs and more comments (i added one line comment) --- RELENTLESS-Lite/src/main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/RELENTLESS-Lite/src/main.cpp b/RELENTLESS-Lite/src/main.cpp index 033b062..7f9b5e2 100644 --- a/RELENTLESS-Lite/src/main.cpp +++ b/RELENTLESS-Lite/src/main.cpp @@ -12,6 +12,15 @@ 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); @@ -25,7 +34,7 @@ void initialize() { ary::autonselector::auton_selector.add_autons({ Auton("Test Auton\n\nTesting Autonomous on field", test_auton), - Auton("Test Auton - The Sequel\n\nyo mama", test_second) + Auton("Test Auton - The Sequel\n\nyo mama", test_second) // TODO: Change this before putting this in the notebook LOL }); chassis.set_drive_brake(MOTOR_BRAKE_COAST);