Quote:
Originally Posted by Alan Anderson
Show us your program if you want us to look it over.
|
Here is the some of the operator control period:
public void operatorControl()
{
double joyL, joyR, joyF;
joyL = joyR = 0;
double speed, Fspeed;
while ( isOperatorControl() && isEnabled() )
{
if(RightDriver.getRawButton(5))
{
speed = 0.88;
}
else if(LeftDriver.getRawButton(5))
{
speed = 0.88;
}
else
{
speed = 0.88;
}
joyL = 0.7*LeftDriver.getRawAxis(2) + 0.3*joyL;
joyR = 0.7*LeftDriver.getRawAxis(4) + 0.3*joyR;
//System.out.println(LeftDriver.getRawAxis(4));
//DriverStationLCD.getInstance().println(DriverStati onLCD.Line.kUser1, 1, "Left: " + joyL*speed + " ");
//DriverStationLCD.getInstance().println(DriverStati onLCD.Line.kUser2, 1, "Right: " + joyR*speed + " ");
drivetrain.tankDrive(-joyL*speed,-joyR*speed);
Pulley.set(operator.getY());