cata controls

This commit is contained in:
ary 2023-09-26 09:42:56 -04:00
parent ef68a05893
commit 32b5af9d16

View File

@ -78,11 +78,16 @@ void autonomous() {}
* task, not resume it from where it left off. * task, not resume it from where it left off.
*/ */
void opcontrol() { void opcontrol() {
while (true) {
while (true) { //chassis.arcade_standard(ary::SPLIT, e_curve_type::DEFAULT);
chassis.arcade_standard(ary::SPLIT, e_curve_type::DEFAULT); if (globals::master.get_digital(DIGITAL_R1)) {
motor_tlb.move_voltage(-8500);
motor_trb.move_voltage(8500);
} else {
motor_tlb.move_voltage(0);
motor_trb.move_voltage(0);
}
pros::delay(20); pros::delay(20);
} }
} }