View Single Post
  #2   Spotlight this post!  
Unread 13-02-2015, 20:06
Justie Justie is offline
Registered User
FRC #2080
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2013
Location: Louisiana
Posts: 1
Justie is an unknown quantity at this point
Re: When Switching between Enable and Disable mode Talon SRX stop working

The problem was fixed by our team.

It is not the code, it is not the talons, its the User error.
When you previously ran the robot, you probably hit the DISABLE button while the motors were still running. That made the MotorSafety shut down the motors until the enabled function is activated.

You can still make a fail prevent in your code. For example, if the autonomous is working, and the ref shuts it off while it is driving, the error will occur in TeleOP.

What you can do is enable all of your Talons with a button

example would be:


if(stick.GetRawButton1)
{frontLeft.EnableControl(),
frontRight.EnableControl(),
backLeft.EnableControl(),
backRight.EnableControl()
}
(I dont remember the exact syntax)

You would add that to your TeleOP code.

But overall, dont disable the robot while the drive motors are running.

Last edited by Justie : 13-02-2015 at 21:28.
Reply With Quote