Option demo

Switches between different demo behaviors

State Machine

This browser can't display the SVG file svg/option_demo.svg.



The Adobe SVG Viewer 3.0 can be downloaded from http://www.adobe.com/svg/viewer/install/main.html

State play_dead_demo

If that state is active,
 >  This enumerated output symbol is set:
    head.control_mode  = 
head.control_mode.look_straight_ahead
 >  The option play_dead_demo is executed.
 >  The option handle_fall_down is executed.
 >  The option head_control is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_demo_state_play_dead_demo.svg.



The Adobe SVG Viewer 3.0 can be downloaded from http://www.adobe.com/svg/viewer/install/main.html
 
Pseudo code of the decision tree:
 
/** */
if (
(switch.hind_back_button_pressed() )
&& 
(switch.head_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto play_dead_demo;
}
else
{
  
/** */
if (
(switch.hind_back_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto walk_demo;
}
else
{
  
stay;
}
}

State walk_demo

If that state is active,
 >  This enumerated output symbol is set:
    leds.face7  = 
leds.blink.looo
 >  This enumerated output symbol is set:
    leds.face9  = 
leds.blink.oloo
 >  This enumerated output symbol is set:
    leds.face10  = 
leds.blink.oolo
 >  This enumerated output symbol is set:
    leds.face8  = 
leds.blink.oool
 >  The option walk_demo is executed.
 >  The option handle_fall_down is executed.
 >  The option head_control is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_demo_state_walk_demo.svg.



The Adobe SVG Viewer 3.0 can be downloaded from http://www.adobe.com/svg/viewer/install/main.html
 
Pseudo code of the decision tree:
 
/** */
if (
(switch.hind_back_button_pressed() )
&& 
(switch.head_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto play_dead_demo;
}
else
{
  
/** */
if (
(switch.head_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto kick_demo;
}
else
{
  
stay;
}
}

State kick_demo

If that state is active,
 >  This enumerated output symbol is set:
    leds.face5  = 
leds.blink.lloo
 >  This enumerated output symbol is set:
    leds.face6  = 
leds.blink.ooll
 >  The option kick_demo is executed.
 >  The option handle_fall_down is executed.
 >  The option head_control is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_demo_state_kick_demo.svg.



The Adobe SVG Viewer 3.0 can be downloaded from http://www.adobe.com/svg/viewer/install/main.html
 
Pseudo code of the decision tree:
 
/** */
if (
(switch.hind_back_button_pressed() )
&& 
(switch.head_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto play_dead_demo;
}
else
{
  
/** */
if (
(switch.head_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto ball_recognition_demo;
}
else
{
  
stay;
}
}

State ball_recognition_demo

If that state is active,
 >  This enumerated output symbol is set:
    leds.face1  = 
leds.blink.llll
 >  This enumerated output symbol is set:
    leds.face2  = 
leds.blink.llll
 >  The option ball_recognition_demo is executed.
 >  The option handle_fall_down is executed.
 >  The option head_control is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_demo_state_ball_recognition_demo.svg.



The Adobe SVG Viewer 3.0 can be downloaded from http://www.adobe.com/svg/viewer/install/main.html
 
Pseudo code of the decision tree:
 
/** */
if (
(switch.hind_back_button_pressed() )
&& 
(switch.head_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto play_dead_demo;
}
else
{
  
/** */
if (
(switch.head_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto special_action_demo;
}
else
{
  
stay;
}
}

State special_action_demo

If that state is active,
 >  This enumerated output symbol is set:
    leds.face13  = 
leds.blink.lolo
 >  This enumerated output symbol is set:
    leds.face14  = 
leds.blink.olol
 >  The option special_action_demo is executed.
 >  The option handle_fall_down is executed.
 >  The option head_control is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_demo_state_special_action_demo.svg.



The Adobe SVG Viewer 3.0 can be downloaded from http://www.adobe.com/svg/viewer/install/main.html
 
Pseudo code of the decision tree:
 
/** */
if (
(switch.hind_back_button_pressed() )
&& 
(switch.head_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto play_dead_demo;
}
else
{
  
/** */
if (
(switch.head_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto walk_demo;
}
else
{
  
stay;
}
}