This article is part of the article here. First, please take a look at this.
FIRST At first. Grabber is the part here in front of the robot. We deal with balls and boards here.
Turn the rollers such as gray </ font> in the front and green </ font> in the back to collect and fire the ball.
Actually, there is a hole in the center of the board, but I put a white stick in the foreground and spread out something like a claw to collect it.
・ A ball with a diameter of 33 cm can be collected, held, and fired at any time. ・ You can attach or attach a board ・ Store the arm (the mechanism that performs the above operation) ⇒Rules must be closed at first & disturb when firing the ball
Pass the argument motor and solenoid to the class field.
Receive information from State and substitute it for motors and solenoids.
Collect the balls.
Fire the ball
Stop the roller. Do this when nothing is being manipulated.
Set the roller speed. If you comment out the process here, the roller will not move.
Is the roller moving?
Collect the board
Install the board
Close the arm
Put out the arm
Is the arm stowed?
Obvious ones are omitted.
Also, if you hold the ball and close the arm, the ball will pop out, so rotate the roller slightly to hold it.
Ball related.
In the switch, the processing is divided according to the cargoState
of State.
For kHold
,holdCargo ()
For kRelease
, callreleaseCargo ()
.
Board related. If State says grab the panel, grab it.
LAST Finally.
It was a lot easier here than Drive.
Then.
Previous article ⇒ Lift related Next article ⇒ Climb related
Recommended Posts