Professional Documents
Culture Documents
Statediagram Final Project
Statediagram Final Project
Statediagram Final Project
Mike Erickson
Mindy Phung
Teresa Tomelli
Limit Switch 1
IR 1
Limit Switch 2
Proximity Sensor 3
Front
Wheels
IR 2
Proximity Sensor 2
Proximity Sensor 1
Press on button
-spin in place
-start game timer
Ready for
Game
FLAP detected
(IR1)
-spin clockwise
-begin spin timer
Initial
Orientation
Detect FLAP
Daniel Concha
Mike Erickson
Mindy Phung
Teresa Tomelli
FLAP detected
(IR2)
-spin c.clockwise
Approach Center
FLAP detected
(IR1)
-motors forward
Centered
Facing FLAP
First limit switch hits (1/2)
-stop corresponding wheel,
and move opposite wheel
forward
Unload
counter=3
-spin in place
STOPPED
Align FLAP
At FLAP
Loading
Drive timer
expires (0.5 s)
-reset drive timer
Unload
Locked and
Loaded
Lever
contact
Loading timer
expires (1s)
-both motors
reverse
-reset loading timer