OS ROBOT
COMPETITION
PseudoAlgorithm
ATTACK STRATEGY
To find ball and move towards it:
-> SEAL carries 2 balls at beginning and shoot both balls first
-> Use sonar sensor to detects next ball
-> SEAL moves towards the ball until it reaches certain distances
-> After reaching defined distance, SEAL stops and ready for next action
To grab and move with the ball:
-> SEAL lower down the arm while opening the grabbing hand
-> The grabbing hand closes and hold the ball
-> SEAL lift up the arm and put the ball on the launcher
-> SEAL proceed to find the colored line to launch the ball
To score the ball:
-> SEAL detects the colored line and stop
-> SEAL jerk its arm and throw the ball into the basket
DEFENSE STRATEGY
To defense the goal:
-> SEAL uses color sensor to detects the colored line (so that it doesn't cross it)
-> SEAL uses sonar sensor to detects wall (so that it doesn't crash into it)
-> SEAL makes a right turn every time the sensors detect hurdles
ps: SEAL will circulate inside the defense area