![]() |
Robot Crash
Hi all,
Working on alternate ideas while doing the whole reprogramming the robot in C++. The robot works fine until I press the kick/fire button, upon which the cRIO "crashes". Nothing happens, DS says "Watchdog Not Fed". Using NetConsole, I could see that the cRIO clearly crashed, but now it's not saying anything for some reason. I reimaged the cRIO to see if that would fix it, but nope. Though it now says the evil errors: Code:
data accessI want to say it has something to do with the rollerEncoder because I'm not getting any data from it. Dad hasn't hooked up the scope yet to tell for sure though. If you want to look at all the code, look here: http://github.com/Tanner/Team-1261--.../rollerEncoder Thoughts? -Tanner |
Re: Robot Crash
Can you put printfs every few lines to narrow down the location of the crash?
Oh and we have dead encoders on our bot and nothing went wrong when we tried to use them. Unless you're encoders are somehow causing NULLs, you should be fine Also, when looking at your code, I noticed that you call Kicker::Act in autonomous, which looks at joystick buttons. The DS will send whatever data was on the DS at the beginning of Autonomous, so if one of the control buttons are pressed when auton enables your kicker code will follow it |
Re: Robot Crash
Quote:
Quote:
Quote:
-Tanner |
Re: Robot Crash
In my experience, the most common source of those symptoms (crash, "Watchdog Not Fed" message) is when your code tries to dereference a null pointer. I'd suggest doing a quick check to make sure you're creating all the objects you are using.
|
Re: Robot Crash
Just quickly looking through your code I notice that you never initialize variable kickerSwitch
That would be a null pointer at at line 94 / 95 (The number spacing is off a lot, I can't tell) |
Re: Robot Crash
Quote:
I commited it back. Will see how it all works when I get off work. -Tanner |
Re: Robot Crash
Quote:
The variable kickerSwitch was it. Not sure why I removed it, but that was it. At least it wasn't something terribly wrong. Thanks all! -Tanner |
| All times are GMT -5. The time now is 13:51. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi