|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#7
|
||||
|
||||
|
Re: SmartDashboard causing Watchdog errors
I would suggest not updating the dashboard everytime through the loop. A person cannot possibly process the change in the values that quickly anyway.
Here is a snippet of code that we use to do this. It is simple and still gives a very prompt dashboard update. Code:
if (dashCounter == 10)
{
// these are the calls to our classes to update the dashboard
thor->UpdateDash();
loki->UpdateDash();
valkyrie->UpdateDash();
dashCounter = 0;
ds->UpdateLCD();
}
else
{
dashCounter++;
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|