FRC-Team-1710 / FRC1710-2018

Team 1710's robot code for 2018.
2 stars 0 forks source link

Make SubsystemManager.masterReset() call all of the reset methods, not reset each individual object. #27

Closed Team1710CTO closed 6 years ago

Team1710CTO commented 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.