Figure 3. Repeat the same process as Step 2, but set the
mailbox to 2 and the variable to Stop. Wire the logic out data
hub to the Stop variable.
Figure 4. Add a Stop variable block set to read, and wire it to a
switch set to logic. This will allow us to make Isotope react
differently if the touch sensor is being pressed (meaning Stop is
set to true), as opposed to if the touch sensor isn't being
pressed (meaning Stop is set to false).
Figure 5. If Stop is set to true (meaning the touch sensor is
being pressed), we want Isotope to stop moving. Add a Move
block set to stop on the true side of the logic switch.
Figure 6. Add a Steer variable block to the false side of the
Figure 7. Add a Move block and wire the output of the Steer
variable to the Steering data hub of the Move block.
Figure 8. Finally, add a Wait for Time block at the very end of
the program, setting it for .1 seconds. This will make sure that
Isotope doesn't try to look for Bluetooth signals too fast, when
they aren't there!
SERVO 01.2012 77