Tower#

Introduction#

The Signal Tower is a device that uses colored lights to show the robot’s status. It also has a built-in bumper switch that can detect when it is pressed.

Below is a list of all blocks:

set Signal Tower#

The set signal tower stack block sets the light pattern of one or more LEDs on the Signal Tower.

These lights can be used to track where the robot is at in a project or to show when certain conditions are met.

set [SignalTower1 v] to [green v] and [solid v]

Parameter

Description

signal tower

Which Signal Tower to use, configured in the Devices window.

color

Selects which color light to set the pattern for:

  • green
  • red
  • yellow
  • blue
  • white
  • all

pattern

Sets the light pattern:

  • solid — Lights will constantly stay on
  • blinking — Lights will blink on and off
  • off — Turns the lights off

Example

when started
[Make the blue light blink.]
set [SignalTower1 v] to [blue v] and [blinking v]
wait (3) seconds
set [SignalTower1 v] to [blue v] and [off v]

when Signal Tower bumper pressed#

The when Signal Tower bumper pressed hat block runs the attached stack of blocks when the button on the Signal Tower is pressed. This can be used as an emergency stop.

  when [SignalTower1 v] bumper pressed  :: hat events

Parameter

Description

device

Which Signal Tower to use, configured in the Devices window.

  when [SignalTower1 v] bumper pressed  :: hat events
  [Set the Signal Tower as a Control Stop.]
  set [Arm1 v] to control stopped