View Single Post
  #1   Spotlight this post!  
Unread 16-03-2010, 19:18
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Enabling Default Dashboard in C++

Quote:
Originally Posted by Travis Hoffman View Post
I'm trying to get the default LabVIEW dashboard indicators to update (so I can then pursue some customizations). I'm using WindRiver C++. I'm borrowing our code template we used last season (shared online so it's rules-friendly, not that anyone would want to use it ). On the surface, I think I ported over the dashboard specific code from this year's template properly. I did get the dashboard to display the camera feed, but the IO status indicators are not updating. Can anyone set me down the right path? I use the IterativeRobot class.

Code:
 
//Stuff in .h file
 
#include"DashboardDataSender.h"
 
DashboardDataSender *dds;
Code:
 
//Stuff in .cpp file
 
#include"DashboardDataSender.h"
 
//Dashboard Data Sender
dds = new DashboardDataSender();
//Update Dashboard Data
dds->sendIOPortData();
Should I be calling the sendIOPortData() method in a specific location? Am I missing anything else?


Thanks,
The reason the indicators don't update is because the default code in C++ doesn't actually read the data. It just sends pre-set values. There are some blocks of commented-out code in DashboardDataSender.cpp that if are un-commented and the code mirroring them is commented, it should properly update the dashboard
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote