Log in

View Full Version : Arcade drive codes for java


choas5000
16-02-2013, 23:42
Arcade drive codes for java I need the codes!!!!!!!!!!!!!!!!!

F22Rapture
16-02-2013, 23:44
This makes no sense. What do you need?

A basic arcade drive looks like this...

public void arcadeDrive(double throttleValue, double turnValue) {
double leftMtr;
double rightMtr;
leftMtr = throttleValue + turnValue;
rightMtr = throttleValue - turnValue;
drive.tankDrive(leftMtr, rightMtr);
}

Which is essentially the same as the one that's built into WPILib. Just use drive.arcadeDrive(); instead of drive.tankDrive();

choas5000
16-02-2013, 23:48
ok thank you i was confused becuase it said tankdrive

z_beeblebrox
16-02-2013, 23:48
Also see this (http://www.chiefdelphi.com/forums/showpost.php?p=1181728&postcount=2) post. And don't use Comic Sans! :ahh:

Ether
16-02-2013, 23:53
Arcade drive codes for java I need the codes!!!!!!!!!!!!!!!!!

No shouting on this forum please.