View Single Post
  #7   Spotlight this post!  
Unread 13-02-2014, 16:42
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 307
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
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++;
    }
__________________