I'm using XBee S1's to communicate data between two robotic vehicles. I've been working hard on the XBee configurations in order to have consistent delays between the communication. My set up works great when I run test code without turning the wheel motors on, with a consistent time between Rx's and a small deviation from the average. However, when I run the code with the motors on, I get a significant amount of random delays, sometimes as much as 10x the average delay.
I'm using a board with an Atmel ATmega microcontroller (DFRobot Romeo v2.2) that has the motor drivers built in.
Any suggestions on how to fix this?