Closed Team1710CTO closed 6 years ago
Right now masterReset() looks like: public static void masterReset() { RobotMap.navx.reset(); RobotMap.R1.setSelectedSensorPosition(0, 0, 0); RobotMap.R2.setSelectedSensorPosition(0, 0, 0); RobotMap.wrist.setSelectedSensorPosition(0, 0, 0); RobotMap.lift1.setSelectedSensorPosition(0, 0, 0); RobotMap.shifter.set(DoubleSolenoid.Value.kOff); RobotMap.intakeRight.set(DoubleSolenoid.Value.kOff); RobotMap.intakeLeft.set(DoubleSolenoid.Value.kOff); RobotMap.rampDeploy.set(DoubleSolenoid.Value.kOff); RobotMap.rampExtendo.set(DoubleSolenoid.Value.kOff); RobotMap.rampLifto.set(DoubleSolenoid.Value.kOff); } instead of calling each RobotMap object call the methods that already do this.
masterReset()
public static void masterReset() { RobotMap.navx.reset(); RobotMap.R1.setSelectedSensorPosition(0, 0, 0); RobotMap.R2.setSelectedSensorPosition(0, 0, 0); RobotMap.wrist.setSelectedSensorPosition(0, 0, 0); RobotMap.lift1.setSelectedSensorPosition(0, 0, 0); RobotMap.shifter.set(DoubleSolenoid.Value.kOff); RobotMap.intakeRight.set(DoubleSolenoid.Value.kOff); RobotMap.intakeLeft.set(DoubleSolenoid.Value.kOff); RobotMap.rampDeploy.set(DoubleSolenoid.Value.kOff); RobotMap.rampExtendo.set(DoubleSolenoid.Value.kOff); RobotMap.rampLifto.set(DoubleSolenoid.Value.kOff); }
Right now
masterReset()
looks like:public static void masterReset() { RobotMap.navx.reset(); RobotMap.R1.setSelectedSensorPosition(0, 0, 0); RobotMap.R2.setSelectedSensorPosition(0, 0, 0); RobotMap.wrist.setSelectedSensorPosition(0, 0, 0); RobotMap.lift1.setSelectedSensorPosition(0, 0, 0); RobotMap.shifter.set(DoubleSolenoid.Value.kOff); RobotMap.intakeRight.set(DoubleSolenoid.Value.kOff); RobotMap.intakeLeft.set(DoubleSolenoid.Value.kOff); RobotMap.rampDeploy.set(DoubleSolenoid.Value.kOff); RobotMap.rampExtendo.set(DoubleSolenoid.Value.kOff); RobotMap.rampLifto.set(DoubleSolenoid.Value.kOff); }
instead of calling each RobotMap object call the methods that already do this.