-
Notifications
You must be signed in to change notification settings - Fork 5
Testing Shooter
The robot shooter subsystem runs the mechanism for firing balls, commands consisting mainly of logically controlled actions. Testing will be done by command, cycling through the different functions and the commands that run them. Starting with the simplest commands and working upwards.
- Map DriveShooterIn to button A1
- Map DriveShooterOut to button B1
- Map DriveShooterStop to button X1
- Map DischargeBall to button Y1
1.A - Unplug the two shooter motors.
1.B - Plug in shooter motor number 1.
1.C - Briefly press and release button A1 to see if shooter motor 1 is turning in the intake direction (take note of the LED color on the motor controller) the gears are operating smoothly, and the motors and gears stop when the button is released.
1.D - Press and hold button A1 to see if the motor reaches the proper speed then release button A1 to stop (how do we verify the proper speed?).
1.E - Briefly press and release button B1 to see if shooter motor 1 is turning in the outtake direction (take note of the LED color on the motor controller) the gears are operating smoothly, and the motors and gears stop when the button is released.
1.F - Press and hold button B1 to see if the motor reaches the proper speed then release button B1 to stop (how do we verify the proper speed?).
1.G - Unplug shooter motor 1 and plug in shooter motor 2.
1.H - Repeat steps 1.C through 1.F with motor 2.
1.I - Plug in shooter motors 1 and 2.
1.J - Repeat steps 1.C through 1.F with both motors connected.
1.K - Press button Y1 to see if the motors turn on for 1 second and then stop.
- Map B1 to Harvest Rollers-in
- Map A1 to Harvest Rollers-out
- Map second joystick to Drive
- A second x-box controller will be required
- Put the robot up on blocks
2.A - Press B1 the rollers should rotate in (take note of the LED color on the motor controller).
2.B - Release B1 the rollers should stop (take note of the LED color on the motor controller).
2.C - Push B1 while moving second joystick forwards, ensure that the gears/roller is rotating in (take note of the LED color on the motor controller), while also driving in the correct orientation.
2.D - Release B1 while continuing to hold the joystick, the rollers should stop (take note of the LED color on the motor controller) , the drive base wheel should continue unaffected.
2.E - Release the joystick allowing it to return to a neutral position, the drive wheels should stop.
2.F - Press A1 the rollers should rotate out (take note of the LED color on the motor controller).
2.G - Release A1 the rollers should stop (take note of the LED color on the motor controller).
2.H - Push A1 while moving second joystick forwards, ensure that the gears/roller is rotating out (take note of the LED color on the motor controller) while also driving in the correct orientation.
2.I - Release the joystick,the drive wheels should stop, the intake roller should continue (take note of the LED color on the motor controller).
2.J - Release A1, the rollers should stop (take note of the LED color on the motor controller).
2.K - to do later: investigate auto-stop.
- Map ShooterCommand to button A1
- Map Stop-Shooter to the release of A1
- Put the robot up on blocks
- Prerequisite: Test 1 completed
3.A - Unplug the two shooter motors and the harvester motor.
3.B - Press button A1 and ensure that the gears and rollers are rotating out (take note of the LED color on the motor controller).
3.C - Plug in shooter motors 1 and 2.
3.D - Repeat steps 1.C through 1.F with both motors connected.
3.E - Press button Y1 to see if the motors turn on for 1 second and then stops.