State Diagram: TOP:checkforsafetybrakes