Testing of the Ball Collection System Testing Cases for the Ball Handling Team Part 1 Test Inputs Flip lower assembly switch and see if it turns on Flip lower assembly switch off and see if it stops Flip upper assembly switch and see if it turns on Flip upper assembly switch and see if it stops Part 2 Check constants C_BC_ONFWDH CON 225 upper assembly switch forward speed C_BC_ONFWDL CON 225 lower assembly switch forward speed C_BC_ONBWD CON 30 all assembly switch for backward speed MOTOR_STOP CON 127 set the motor to stop ON CON 1 on (used to compare switch inputs) OFF CON 0 off (used to compare switch inputs) Part 3 Test Cases Case #1 INPUT Flip lower assembly switch forward (INPUT VALUE = 2) OUTPUT Lower assembly motor is set to collect the balls. (OUTPUT VALUE = C_BC_ONFWDL) Case #2 INPUT Leave lower assembly switch in the center position. (INPUT VALUE = 1) OUTPUT Lower assembly motor is set to the stop position. (OUTPUT VALUE = MOTOR_STOP) Case #3 INPUT Flip lower assembly switch backward (INPUT VALUE = 0) OUTPUT Lower assembly motor is set to spit the balls out the lower end. (OUTPUT VALUE = C_BC_ONBWD) Case #4 INPUT Flip higher assembly switch forward (INPUT VALUE = 2) OUTPUT Higher assembly motor is set to collect the balls. (OUTPUT VALUE = C_BC_ONFWDH) Case #5 INPUT Leave higher assembly switch in the center position. (INPUT VALUE = 1) OUTPUT Higher assembly motor is set to the stop position. (OUTPUT VALUE = MOTOR_STOP) Case #6 INPUT Flip higher assembly switch backward (INPUT VALUE = 0) OUTPUT Higher assembly motor is set to spit the balls out the lower end. (OUTPUT VALUE = C_BC_ONBWD) Case #7 INPUT Lower assembly switch is set to forward and then set to backward (INPUT VALUE = 2 then INPUT VALUE = 0) OUTPUT The motor is set to forward (OUTPUT VALUE = C_BC_ONFWDL) then pauses for 20 loops at neutral (OUTPUT VALUE = MOTOR_STOP) then the motor is set to backwards (OUTPUT VALUE = C_BC_ONBWD) Case #8 INPUT Higher assembly switch is set to forward until the motors start moving forward and then set to backward (INPUT VALUE = 2 then INPUT VALUE = 0) OUTPUT The motor is set to forward (OUTPUT VALUE = C_BC_ONFWDH) then pauses for 20 loops at neutral (OUTPUT VALUE = MOTOR_STOP) then the motor is set to backwards (OUTPUT VALUE = C_BC_ONBWD) Case #9 INPUT Lower assembly switch is set to forward and then set to backward (INPUT VALUE = 2 then INPUT VALUE = 0) OUTPUT The motor is set to forward (OUTPUT VALUE = C_BC_ONFWDL) then pauses for 20 loops at neutral (OUTPUT VALUE = MOTOR_STOP) then the motor is set to backwards (OUTPUT VALUE = C_BC_ONBWD)