Better way to code XBee remote control for robot.

In S2 XBee networks in API mode, for single-hop transmissions, I have typically observed times of 20-30 ms between transmission and receipt of the ack.