#include "Behaviors/StateMachine.h"

$nodeclass Lab2p1  : StateNode {  
	$setupmachine{
		launch : StateNode =N=> {noblink, wait}	

		noblink : LedNode [setPriority(MotionManager::kBackgroundPriority);
	              getMC()->set(RobotInfo::AllLEDMask,0.0)] =C(1)=> wait

		blink : LedNode [getMC()->flash(RobotInfo::PlayLEDMask, 1000, 1000)] =C(1)=> noblink

		wait: StateNode =B(RobotInfo::PlayButOffset)=> blink
  	}

}

REGISTER_BEHAVIOR(Lab2p1);
