![]() |
Robot seems to be Disabled when using Jaguars
ok, I am writing my first basic program for the robot. I know the robot is in functioning order because i can load and run the Simple Template and that works. Unfortunatly when I run my program, nothing happens. I know that values are being read in from the joystick because I have some printfs and the console. Here is the weird thing, even while the robot is enabled, the signal light continues to blink like its in disabled mode. When I use the Simple Template, the light works correctly.
Here is the relevant code: Code:
class Robot : public IterativeRobotCode:
TeleopPeriodic:Thxe |
Re: Robot seems to be Disabled when using Jaguars
Ok, I found the problem myself. I wasn't feeding the watch dog! It should be noted that the watch dog does not stop your code from executing, it only prevents commands to motors and such from going through, with no error messages at all! So if you see your signal light doing the disabled blink while your robot is enabled, it may be because the watch dog timed out.
Thxe |
Re: Robot seems to be Disabled when using Jaguars
It looks like this is because the watchdog is not being fed, so the motor outputs are disabled. Add in GetWatchdog().Feed() to your teleop function and it should work.
|
| All times are GMT -5. The time now is 02:50. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi