View Single Post
  #2   Spotlight this post!  
Unread 16-02-2013, 23:44
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
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();
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote