Gyro Control Test Instructions
Figure 1. Start by selecting the currently unused portion of
code above your main loop. We're going to be dragging it in
to the main loop such that the Y variable section comes
before the X variable section, and the . 2 second delay comes
at the end.
Figure 2. Your program should now look like this.
Figure 3. Remove the Number To Text and Display Blocks, and
instead, add Send Message blocks. The Var Y value should be
sent to mailbox 1, and the VarX value should be sent to mailbox
2. Be sure to select "Connection" number 1 for each of the
blocks, and "Number" for the type of variable.
Receiving the Numbers
We can’t just send our sensor values off into space and
hope someone hears them! We’re going to need to write a
program for Eddie to receive them. Follow the steps below
to find out how.
Gyro Receiver Test Instructions
Figure 1. Create a new program called Gyro_Receiver_Test
and define number variables Var Y and VarX.
Figure 2. Create a loop. Inside the loop, add two Receive
Message blocks and two Variable blocks set to write, arranged
as indicated. Set the mailbox to the first Receive Message block
to 1 and the Message type to Number. Run a data wire from
the Number out data hub on that first block to the input of the
first Variable block which should be set to Var Y. Repeat the
process for the second Receive Message block. It should be set
to mailbox 2, and written to VarX.
72 SERVO 08.2011