|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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); } |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|