|
Re: Output not updated enough
The RobotDrive class implements a feature called MotorSafety. What happens is that if you don't continue to supply values to the motors (or the RobotDrive object) it assumes that your program has crashed and shuts down the motors.
Can you check if you removed the myRobot.SetSafetyEnabled(false) line? It would disable the safety feature and allow the robot to continue running over the Sleep(2.0); Without disabling MotorSafety the motors will stop soon after you first started them going in an attempt to keep your robot from running with a broken program.
Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Last edited by BradAMiller : 09-01-2012 at 22:40.
Reason: wrote java answer by accident
|