Friday, May 11, 2012

Sprinkles Programming

This is the program for the sprinkles. It uses a wait class until it senses the bowl. Once it senses the bowl it enters the loop. The first move class rotates the motor forward so that the sprinkles will go forward and dump out. The second move class rotates the motors back the same amount of rotations so that it goes back to the starting position. Then the process will loop three times so that there is a decent amount of sprinkles put into the ice cream. After that the program ends, until another bowl of ice cream is sent down the line.

No comments:

Post a Comment