#include "Behaviors/StateMachine.h"

$nodeclass Lab2Q1 : StateNode{
	$setupmachine{
		
		launch: StateNode =N=> {noblink, wait}
		blink: LedNode[getMC()->flash(RobotInfo::PlayLEDMask, 1000)]
		noblink: LedNode [setPriority(MotionManager::kBackgroundPriority);getMC()->set(RobotInfo::AllLEDMask,0.0)]
		
		wait:  StateNode =B(RobotInfo::PlayButOffset)=> blink =C=>wait
	}	

}

REGISTER_BEHAVIOR(Lab2Q1);


