Video clip runs from 12:06 to 23:50
XRP 03: Teleoperated (Driver) Mode
Note: Watch the entire video
Auto_Tank_Drive_Timed
Write a program to drive forward at a speed of .6 for ten seconds.
Auto_Encoders
- Create a new project called “Auto_Encoders” (with a project type of “example” using the “Encoder” sample program)
- Open the Auto_Encoders project
- In the AUTO_ENCODERS folder tree, open the Robot.java program
- Review the program, noting how the encoders are defined and used to calculate distance.
- Run the program (using WPILib: Simulate Robot Code) and open the SmartDashboard to view the values for “Encoder Distance” and “Encoder Rate”
Auto_Differntial_Drive_Distance
With an understanding of the Auto_Encoder program, write a program to drive forward at a speed of .6 for 12 inches.
Auto_Drive_Turn
Write a program to drive forward at a speed of .6 for 12 inches, pause for 3 seconds, and then turn clockwise for about 90 degrees. You can use elapsed time or encoder measurements to control the turn.
Tank_Drive_Steering
Write a program to read the positions of the left and right joysticks to control the speed and rotation of the left and right motors, respectively.
Arcade_Drive_Steering
Write a program to use the Y-axis of the left joystick to control both motors, driving the robot forward or backward. At the same time, use the X-axis of the right joystick to control the robot's rotation. Pushing the right joystick to the right causes the robot to rotate clockwise, while pushing the same joystick to the left causes a counterclockwise rotation.
Control_Servo
Write a program that uses the Xbox controller's A and B buttons to control a servo. Pressing the A button causes the servo to rotate 90 degrees clockwise. Pressing the B button causes the servo to rotate 90 degrees counterclockwise.