Kangaroo Library for Arduino
Use reliable Packet Serial to communicate with your Kangaroo.
1.Basics/MixedMode/MixedMode.ino

Drives a tank-style rover around.

// Mixed Mode Sample for Kangaroo
// Copyright (c) 2013 Dimension Engineering LLC
// See license.txt for license details.
#include <SoftwareSerial.h>
#include <Kangaroo.h>
// Arduino TX (pin 11) goes to Kangaroo S1
// Arduino RX (pin 10) goes to Kangaroo S2
// Arduino GND goes to Kangaroo 0V
// Arduino 5V goes to Kangaroo 5V (OPTIONAL, if you want Kangaroo to power the Arduino)
#define TX_PIN 11
#define RX_PIN 10
// Mixed mode channels on Kangaroo are, by default, 'D' and 'T'.
SoftwareSerial SerialPort(RX_PIN, TX_PIN);
KangarooSerial K(SerialPort);
KangarooChannel Drive(K, 'D');
KangarooChannel Turn(K, 'T');
void setup()
{
SerialPort.begin(9600);
SerialPort.listen();
Drive.start();
Turn.start();
Drive.si(0);
Turn.si(0);
}
void loop()
{
// Drive 500 ticks (relative to where we are right now), then wait 1 second.
Drive.pi(500).wait();
delay(1000);
// Turn 500 ticks (relative to where we are right now), then wait 1 second.
Turn.pi(500).wait();
delay(1000);
}