Quick Start Guide
© Modular Robotics, 2016 www.modrobotics.comPage 13
14. Action Blocks Average Their Inputs
If your robot has two Sense blocks and one
Action block, which one controls the robot?
Build a Testbot with two Distance Sense
blocks and a Bar Graph Action block between
them.
The Bar Graph Action block shows a low value
if neither Distance Sense block senses an
object. Put one hand in front of each Distance
Sense block. They will both produce a high
number. The Bar Graph Action block shows a
high number.
Now put your hand in front of just one of
the Distance Sense blocks. This block now
produces a high number while the other
Distance Sense block produces a low number.
The Bar Graph Action block takes both
numbers and averages them. It shows a
number that is halfway between the numbers
it gets from its two Distance Sense neighbors.