View Single Post
  #8   Spotlight this post!  
Unread 13-02-2014, 16:50
Arrowhead Arrowhead is offline
Registered User
AKA: Daniel Brown
FRC #1369 (1369 Minotaur)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Tampa, Florida
Posts: 49
Arrowhead is an unknown quantity at this point
Re: SmartDashboard causing Watchdog errors

Quote:
Originally Posted by MamaSpoldi View Post
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++;
    }
Thanks, I'll test this out.