|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Watchdog Not Fed!
The most typical mistake is if you have a Wait somewhere in your code that is longer than the watchdog expiration. Wait is blocking. So while you are waiting, the watchdog starves. We don't use Wait in our code at all. We wrote our own timer callback using the Notifier class. We also implemented a state machine so that we do non-blocking wait using the timer callback to advance the state machine to the next state.
|
|
#2
|
||||
|
||||
|
We did not have any
Code:
Wait() I think it might be the camera's Code:
camera = AxisCamera::GetImage() Has anyone ever have this problem before? |
|
#3
|
|||
|
|||
|
Re: Watchdog Not Fed!
Are you disabling the watchdog during autonomous and during the constructor? The watchdog could be expiring before the teleop function sets it up properly
|
|
#4
|
||||
|
||||
|
Re: Watchdog Not Fed!
I don't understand your code. Did you mean:
Code:
camera = AxisCamera::GetInstance(); or HSLImage *image = camera.GetImage();
Last edited by mikets : 24-02-2010 at 17:16. |
|
#5
|
|||
|
|||
|
Re: Watchdog Not Fed!
We had a similar problem. Discovered that the accelerometer was plugged into to the duplicate I2C _OUT_ ports. The accelerator initialization in the robot constructor was simply hanging, so our robot class never made it out of its constructor. So, as soon as the robot was enabled, the watchdog went hungry because our code hadn't started feeding it yet.
I guess the lesson from that is: make sure your code is getting to where you think it is, and check everything. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Watchdog not fed | brianelite | C/C++ | 12 | 14-03-2010 14:43 |
| Enabling yields one "Watchdog not fed" flash | Dylan5019 | Programming | 4 | 12-02-2010 23:45 |
| Autonomous Independent Code Issue Watchdog not fed | pilum40 | FRC Control System | 0 | 11-02-2010 12:00 |
| Watchdog Not Fed but, All Systems Are Go. | DHSrobotics | Java | 4 | 24-01-2010 22:01 |
| Watchdog not fed | ahudson | Programming | 1 | 22-01-2010 11:26 |