Changes between Version 2 and Version 3 of ControlSystems/SoftwareTeam/Training/GettingStarted/ServoMotor/Example2
- Timestamp:
- Jan 28, 2020, 11:50:21 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/ServoMotor/Example2
v2 v3 5 5 Start with a Command template program and: 6 6 1. In the subsystems folder, delete the example subsystem and add the attached files: 7 * ServoSubsystem.java7 * [attachment:ServoSubsystem.java ServoSubsystem.java] 8 8 9 9 2. In the commands folder, delete the example command and add the attached files: 10 * OpenCommand.java11 * CloseCommand.java10 * [attachment:OpenCommand.java OpenCommand.java] 11 * [attachment:CloseCommand.java CloseCommand.java ] 12 12 13 13 3. Replace the files with the attached versions: 14 * RobotContainer.java15 * Constants.java14 * [attachment:RobotContainer.java RobotContainer.java] 15 * [attachment:Constants.java Constants.java] 16 16 17 17 Notice that Main.java and Robot.java are unchanged; their behavior is generic; you define the robot behavior through adding subsystems, commands, and binding controls to the commands.