Romi project using Entech classes and robot organization. This code is NOT complete. It is meant as a training exercise for new programmers.
-
Hook up the drive subsystem to the joystick input. Hint: From the OperatorInterface, see what command is run by default for the drive subsystem. Look in that command and see what method is being used in the DriveSusbsystem. Look at what that method does.
-
Add output to SmartDashboard for drive subsystem status (e.g. gyro angle, speed, accelerations, ...) Hint: use logger
-
Get automomous working. Hint: The CommandFactory returns null for the autonomous command. Have it use the AutonomousDistance command.
-
Provide a command that when a button on the joystick is pressed, moves the robot forward by 6 inches
-
Create a OnBoardIO subsystem that extends EntechSubsystem and has access the LEDs (more details needed here)
-
Pick an LED and provide a LED on/off method(s) for the subsystem
-
Provide an EntechCommand (or commands) that turns the LED on/off
-
Connect the LED to a button on the joystick. The button can either be a toggle (press -> off -> press -> on) or hold on, release off
-
Make the previous command(s) run when robot is disabled
- Get (Download) and install "git" for your computer from git-scm.org
- Get (Download) and install WPI tools following the instructions on the FIRST web site (docs.wpilib.org)
- Create a directory to hold all your robot programming projects (what is the default in vscode??)
- Open a git command window in the directory you created in step 3 and set some default git parameters
git config user.name _your name_
git config user.email _your@email_
- Issue the following command to clone the example code and create your open branch to work on:
git clone https://github.com/entech281/EntechRomi2022
cd EntechRomi2022
git branch _INITIALS-start01_
- Start VSCODE and use "File | Open Directory ..." and select the EntechRomi2022 directory