View Single Post
  #1   Spotlight this post!  
Unread 28-02-2014, 22:48
miw14 miw14 is offline
Registered User
FRC #4840
 
Join Date: Feb 2014
Location: Michigan
Posts: 19
miw14 is an unknown quantity at this point
URGENT:Auto Problem trying to fix before tomorrow

On our first day of competition, we ran into some problems with our shooter. The shooter does not seem to be functioning right in autonomous, but it functions fine in teleoperated. We use the same methods for both, but they both yield different results. Any ideas as to why it works well in one and not the other? The launcher barely moves when we try it in auto, but works fine in teleoperated. The driving is fine in auto. Here is the code:

Autonomous method:

public void autonomous()
{ myDrive.setSafetyEnabled(false);
myDrive.drive(-.5, 0.0);
Timer.delay(3.5);
myDrive.stopMotor();
Timer.delay(1.5);
startRaisingLauncher();
Timer.delay(3.5);
stopMovingLauncher();

stopAll();

}

Raising launcher method:

private void startRaisingLauncher()
{
setLiftPower(-1);
}

set power method:
private void setLiftPower(double power)
{
M1.set(-power);
M2.set(power);
}
Reply With Quote