Commit | Line | Data |
---|---|---|
1 | package org.usfirst.frc.team3501.robot.commands.scaler; | |
2 | ||
3 | import org.usfirst.frc.team3501.robot.Constants; | |
4 | import org.usfirst.frc.team3501.robot.commands.auton.CompactRobot; | |
5 | ||
6 | import edu.wpi.first.wpilibj.command.CommandGroup; | |
7 | ||
8 | public class ToggleScaling extends CommandGroup { | |
9 | public ToggleScaling() { | |
10 | Constants.Scaler.SCALING = !Constants.Scaler.SCALING; | |
11 | if (Constants.Scaler.SCALING) | |
12 | addSequential(new CompactRobot()); | |
13 | } | |
14 | } |