View Single Post
  #2   Spotlight this post!  
Unread 28-02-2014, 22:54
Domenic Rodriguez's Avatar
Domenic Rodriguez Domenic Rodriguez is offline
Registered User
FRC #0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Grove City, PA
Posts: 213
Domenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura about
Re: URGENT:Auto Problem trying to fix before tomorrow

Without seeing more of the code, it will be difficult to determine what the issue is. Are you having problems both on and off the field? Is there any way the power values to the motors could be different between Autonomous and Teleop modes?

Also, if you wrap your code in [code][/code] tags, it will format nicely, like this:
Code:
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);
}
__________________

LuNaTeCs - Learning Under Nurturing Adults Teaching Engineering Concepts and Skills - Small and Mighty!

FRC 316 LuNaTeCs - Student (2011-2014), Lead Programmer (2011-2014), Team Captain (2013-2014), Operator (2013), Drive Coach (2014), Mentor (2015-????)
'11 Philly Regional Finalists, '13 Chestnut Hill Finalists, '13 Lenape Champions, '13 Archimedes Division, '14 Chestnut Hill Champions, '14 Lenape Champions
FTC 7071 EngiNerds - Founding Advisor (2013-2014) | FRC 5420 Velocity - Founding Advisor (2015)
Grove City College Class of '18, Electrical/Computer Engineering (B.S.E.E)

Reply With Quote