View Single Post
  #3   Spotlight this post!  
Unread 05-02-2013, 21:26
Hjax Hjax is offline
Registered User
FRC #1740
 
Join Date: Feb 2013
Location: Ledyard, CT
Posts: 3
Hjax is an unknown quantity at this point
Re: Robot Code Not Working

You forgot to disable motor safety.
Motor safety kills the robot if you don't pass an update to the motor often enough (if i remember correctly)

Just put this line:
Code:
myRobot.SetSafetyEnabled(false);
before this line:
Code:
while (isOperatorControl()){
This will disable the motor safety (not a bad thing in this case to keep your motors spinning and your code working)
Reply With Quote