#include "Behaviors/StateMachine.h"

$nodeclass PartIII : StateNode {

  $setupmachine{

    launch: StateNode =N=> {noblink, wait}

    noblink: LedNode [setPriority(MotionManager::kBackgroundPriority); getMC()->set(RobotInfo::PlayLEDMask, 0.0)]

    wait: StateNode
    led: LedNode [getMC()->cycle(RobotInfo::PlayLEDMask, 1500, 1.0)]

    led =T(1000)=> wait
    wait =B(RobotInfo::PlayButOffset)=> led
  }

}

REGISTER_BEHAVIOR(PartIII);
