I get an error with arcadeDrive
Error:
The method arcadeDrive(double, double) in the type DifferentialDrive is not applicable for the arguments (Joystick)
import org.usfirst.frc.team7231.robot.RobotMap;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Spark;
import edu.wpi.first.wpilibj.SpeedControllerGroup;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
/**
*
*/
public class DriveTrain_Subsystem extends Subsystem {
Spark FrontDrive_Left = new Spark(RobotMap.FrontDrive_Left);
Spark RearDrive_Left = new Spark(RobotMap.RearDrive_Left);
SpeedControllerGroup Drive_Left = new SpeedControllerGroup(FrontDrive_Left, RearDrive_Left);
Spark FrontDrive_Right = new Spark(RobotMap.FrontDrive_Right);
Spark RearDrive_Right = new Spark(RobotMap.RearDrive_Right);
SpeedControllerGroup Drive_Right = new SpeedControllerGroup(FrontDrive_Right, RearDrive_Right);
DifferentialDrive MainDrive = new DifferentialDrive(Drive_Left, Drive_Right);
@Override
public void initDefaultCommand() {
}
public void TeleopDrive(Joystick Driver){
MainDrive.arcadeDrive(Driver);
}
public void Stop() {
}
}