"the loop that contains 'RobotDriove' is not running fast enough"

i tried getting a four motor tank drive program working. The first thing I tried was to replace the open two motor drive with a four motor drive. i tried testing this and i got an error saying “the loop that contians robotdrive is not running fast enough” along with other things that it says I should try to fix the problem. the strange thing was that it didn’t just make my drive motors stop working, i couldn’t even get my other motors to work either… so i tried replacing the four motor tank drive with a two motor drive again and it gave me the same message.

What does that error message mean and how can I fix the problem?

What’s a good way to get a four motor tank drive to work? (I have four motors because we’re dealing with a two speed transmission)

The error means that your code opened a RobotDrive and by turning Safety on, it agreed to update the motor speed every 100ms or faster. When it doesn’t do this, it causes errors to be reported and motors to be set to zero speed. Once the arrows are flowing, the timing can get wonky and cause more errors. Look at the early errors and resolve them first.

Also keep in mind that having many panels open will slow execution as well.

Greg McKaskle

The easiest way to make a four motor drivebase work is to treat it as a two motor drivebase in software, then use y-cables to run a pair of motor controllers on each side from the same PWM signal.

Thank you for your help, everything works a bit smoother now. :]

Just as an update. The problem was that i put the compressor loop in the teleop Vi and not in the time tasked VI. (oh the simple things that can destroy the code lol) But thanks for the help :slight_smile: