Anybody know how to do Left Split Arcade with Vex C++ coding?
Can somebody paste their code or how to set up the control statements?
Thank you.
Anybody know how to do Left Split Arcade with Vex C++ coding?
Can somebody paste their code or how to set up the control statements?
Thank you.
You might describe what a left split arcade means to you.
Split Arcade…
You mean Tank drive?
Split arcade is where the left stick controls forward and back, and the right stick controls turning. You code it the same way as arcade but split it between 2 sticks. I don’t have the code for vex c++ but here it is in robotc. Its the same sort of thing.
int left= vexRT[Ch3] + vexRT[Ch1];
int right= vexRT[Ch3] - vexRT[Ch1];
For Vex C++ use this code
LeftMotor.spin(vex::directionType::fwd, (Controller1.Axis3.value() + Controller1.Axis1.value()*2), vex::velocityUnits::pct);
RightMotor.spin(vex::directionType::fwd, (Controller1.Axis3.value() - Controller1.Axis1.value()*2), vex::velocityUnits::pct);