Hello. My robotics program is switching to Robot C this year, and I was wondering if there is a way to do arcade drive?
There is there are 2 ways to do it. One is split arcade and the other is true arcade.
Heres the code:
//split arcade
int left= vexRT[Ch3] + vexRT[Ch1];
int right= vexRT[Ch3] - vexRT[Ch1];
motor[left]=left;
motor[right]=right;
//true arcade
motor[left]=vexRT[Ch4]+vexRT[Ch3];
motor[right]=vexRT[Ch4]-vexRT[Ch3];
Whivh is the preffered way to use it?
Whatever you prefer. regular only uses one joystick to move so ch3 is for forward movement and 3 is for pivoting. Split is you split the joysticks, so ch3 is for forward and back and ch1 is for pivoting. In In the zone i would use regular even though i normally prefer split because it is easier to move and control other functions of your robot at the same time, since 1 hand is free.