Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Arcade drive codes for java (http://www.chiefdelphi.com/forums/showthread.php?t=113733)

choas5000 16-02-2013 23:42

Arcade drive codes for java
 
Arcade drive codes for java I need the codes!!!!!!!!!!!!!!!!!

F22Rapture 16-02-2013 23:44

Re: Arcade drive codes for java
 
This makes no sense. What do you need?

A basic arcade drive looks like this...

Code:

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

Re: Arcade drive codes for java
 
ok thank you i was confused becuase it said tankdrive

z_beeblebrox 16-02-2013 23:48

Re: Arcade drive codes for java
 
Also see this post. And don't use Comic Sans! :ahh:

Ether 16-02-2013 23:53

Re: Arcade drive codes for java
 
Quote:

Originally Posted by choas5000 (Post 1234756)
Arcade drive codes for java I need the codes!!!!!!!!!!!!!!!!!

No shouting on this forum please.




All times are GMT -5. The time now is 10:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi