Quote:
Originally Posted by WillNess
Except during teleopInit() I think I'd have to set the teleopAfterAutonomous = false. Because if I do the practice mode and then I start teleop the teleopAfterAutonomous would be true and then would go to the docked positions so it would look like this: (Correct me if I'm wrong)
Code:
teleopInit(){
if(teleopAfterAutonomous || DriverStation.getInstance().isFMSAttached()){
shoulder.set(shoulderDocked);
elbow.set(elbowDocked);
teleopAfterAutonomous = false;
}
}
|
Only if there's somewhere later in the code (e.g. in teleopPeriodic()) that uses teleopAfterAutonomous. As for what I see here, the variable is not going to be referenced again. That also means that it won't hurt anything...