![]() |
VictorSP causes "Robots don't quit!"
Basically the title. When we use VictorSP's in Eclipse it gives us the "Robots dont quit" error in the driver station. The console updates so quickly so we cant copy it out. Any help appreciated.
|
Re: VictorSP causes "Robots don't quit!"
"Robots don't quit" (at least in this context) likely means you're not sending commands to the Victors fast enough. Try disabling MotorSafety using:
Code:
VictorSP.setSafetyEnabled(false); |
Re: VictorSP causes "Robots don't quit!"
Quote:
That wouldn't be legal for comp would it? |
Re: VictorSP causes "Robots don't quit!"
Quote:
If you can use NetConsole or RioLog to copy out the error exactly, that would be nice. The "Robots Don't Quit!" error simply means your code has crashed and is now restarting. |
Re: VictorSP causes "Robots don't quit!"
Quote:
|
Re: VictorSP causes "Robots don't quit!"
Quote:
|
Re: VictorSP causes "Robots don't quit!"
Quote:
|
Re: VictorSP causes "Robots don't quit!"
To anyone still lurking:
Just to make sure, where do I put the import and following code? Currently the related code we have is in our Robot.java Code:
VictorSP V1 = new VictorSP(1); // Left motor |
Re: VictorSP causes "Robots don't quit!"
Quote:
There's example code for subsystems here: https://wpilib.screenstepslive.com/s...ple-subsystems and general information on the command based project here: https://wpilib.screenstepslive.com/s.../13809/c/88893 If you're using just a plain iterative robot project without calls to a Scheduler class / commands / subsystems, then the motor objects would typically be class variables of Robot.java, instantiated in the constructor, and the .set() methods would typically be called from within the TeleoperatedPeriodic() and AutonomousPeriodic() methods depending on what you're trying to do. Regarding imports, those always go in the same place within a .java file. At the top preceding the line that specifies the class name. Eclipse will automatically put it in the right spot if you right click the red underlined text and select the add import option. |
| All times are GMT -5. The time now is 01:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi