xBee PICs:
The hull and helm xBee PICs communicated both to their respective radios via EUSART and helper PICs via SSP. The hull xBee PIC communicated to two different helper PICs; one to generate the left motor PWM and one to generate the right motor PWM. Additionally, commands to turn on and off the pump as well as indication LEDs were transmitted to the helper PICs. A three-byte packet was used to organize all of the information that needed to be sent out to the helper PICs. In this case, no information was ever needed by the xBee PIC from the helper PICs, so SSP communication was one-way.
A three-byte packet was sent out to the helper PICs which contained all the information necessary for the hull to navigate and display properly. A header was used to validate each packet, and bytes two and three contained PWM values, pump commands, and LED commands. Bits 1 and 2 of the special byte were alloted for the “special functions” required by any other hull in the competition.