Above is what our code looks like every time the "Pickup" function of the crane game is run. It functions as a series of five steps: (1) the opening of the claw, (2) the lowering of the claw, (3) the closing of the claw, (4) the raising of the claw, hopefully with item in tow, and (5) returning the claw to its starting position. Getting the code to run smoothly was tricky at first, but the code we wound up with seems to work quite well.
The next blog post will demonstrate the cleaned-up UI, with not only just the crane mode but the completed free mode as well. After that, we're ready to take on the ROBOlympics with our MeArm and custom UI!
Paige Ruka
No comments:
Post a Comment