#include "Behaviors/StateMachine.h"

$nodeclass OneSecBlinkBehavior : StateNode {
	$setupmachine{
		//Set up nodes for state machine
		launch: StateNode
		wait: StateNode
		noblink:  LedNode [setPriority(MotionManager::kBackgroundPriority);
	              	  getMC()->set(RobotInfo::PlayLEDMask,0.0)]
		flashled: LedNode[getMC()->cflash(RobotInfo::PlayLEDMask, 1.0, 1000)]

		//Set up transitions
		launch =N=> {noblink,wait}
		wait =B(PlayButOffset)=> flashled
		flashled =C=> wait
	
 	}
}
REGISTER_BEHAVIOR(OneSecBlinkBehavior);
