Option display_team_color

Use the blue/red back leds to display the team color

State Machine

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



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

State red

If that state is active,
 >  This enumerated output symbol is set:
    leds.back_front_blue  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.back_rear_red  = 
leds.blink.llll
 
The decision tree:
  This browser can't display the SVG file svg/option_display_team_color_state_red.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:
 
/** own team color is red */
if ( game.own_team_color() == game.team_color.red)
{
  
goto red;
}
else
{
  
/** own team color is blue */
if ( game.own_team_color() == game.team_color.blue)
{
  
goto blue;
}
else
{
  
stay;
}
}

State blue

If that state is active,
 >  This enumerated output symbol is set:
    leds.back_front_blue  = 
leds.blink.llll
 >  This enumerated output symbol is set:
    leds.back_rear_red  = 
leds.blink.oooo
 
The decision tree:
  This browser can't display the SVG file svg/option_display_team_color_state_blue.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:
 
/** own team color is red */
if ( game.own_team_color() == game.team_color.red)
{
  
goto red;
}
else
{
  
/** own team color is blue */
if ( game.own_team_color() == game.team_color.blue)
{
  
goto blue;
}
else
{
  
stay;
}
}