Changes between Version 1 and Version 2 of ControlSystems/SoftwareTeam/Training/GettingStarted/ServoMotor/Example2


Ignore:
Timestamp:
Jan 28, 2020, 11:44:48 PM (5 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/ServoMotor/Example2

    v1 v2  
    22
    33See the attached files for an example of a program that has commands to open and close something using a servo motor.  The open and close commands are bound to the X and Y buttons on a game controller.
     4
     5Start with a Command template program and:
     61. In the subsystems folder, delete the example subsystem and add the attached files:
     7   * ServoSubsystem.java
     8
     92. In the commands folder, delete the example command and add the attached files:
     10   * OpenCommand.java
     11   * CloseCommand.java
     12
     133. Replace the files with the attached versions:
     14   * RobotContainer.java
     15   * Constants.java
     16
     17Notice 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.