Option special_action_demo

State Machine

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



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

State stand

If that state is active,
 >  This enumerated output symbol is set:
    head.control_mode  = 
head.control_mode.look_straight_ahead
 >  This enumerated output symbol is set:
    motion.type  = 
motion.type.stand
 
The decision tree:
  This browser can't display the SVG file svg/option_special_action_demo_state_stand.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() )
&& 
(state_time > 1000)
)
{
  
goto stand;
}
else
{
  
/** */
if (
(switch.fore_back_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto head_stand;
}
else
{
  
stay;
}
}

State head_stand

If that state is active,
 >  This enumerated output symbol is set:
    head.control_mode  = 
head.control_mode.look_straight_ahead
 >  This enumerated output symbol is set:
    leds.back_front_white  = 
leds.blink.llll
 >  The option special_action is executed. Parameters:
    special_action.id  =  motion.special_action.cheer_head_stand ;
 
The decision tree:
  This browser can't display the SVG file svg/option_special_action_demo_state_head_stand.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() )
&& 
(state_time > 1000)
)
{
  
goto stand;
}
else
{
  
/** */
if (
(switch.fore_back_button_pressed() )
&& 
(state_time > 1000)
)
{
  
goto stand;
}
else
{
  
stay;
}
}