|
Re: Robot locking up using tank drive.
That code looks simple and I don't see an issue. Have you probed the wires from the joysticks going to the RobotDrive? They should also be showing up on the dashboard.
The message about the code not running fast enough could be caused by something not showing maxing out the CPU. Does the charts tab show the CPU usage as being super-high?
If the values going to RobotDrive seem correct, I'd start looking at the electrical. One common issue is that the digital breakout board will not be powered and the motors will sometimes work. You can also put the robot into test mode, enable it, go to the dashboard and click on the test tab, find a motor, select its output value, move the slider and press the motor enable button. This can help to isolate code and electrical issues.
Greg McKaskle
|