August 2010
Intermediate to advanced
288 pages
13h 21m
English
To make the TriBot’s speed depend on its distance from the wall, the Distance value from the Ultrasonic Sensor needs to be connected to the Move block’s Power plug, just as in the original program. To make a data wire cross the boundary of the Switch block, you must first unselect the Switch block’s Flat view option (shown in Figure 9-7). Once the Switch block is using tabbed view, a data wire can be drawn between the Ultrasonic Sensor block’s Distance plug and the Motor block’s Power plug, as shown in Figure 9-8.

Figure 9-7. Unselecting the Flat view option
Figure 9-8. Connecting the Distance to the Power setting ...