Go to Post I've never been one for the "you did your best" and other "everyone's a winner" sayings, they don't push you, they don't get you to analyze what went wrong and figure out where to improve. - Aren_Hill [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2010, 15:11
kevinb999 kevinb999 is offline
Registered User
FRC #2951
 
Join Date: Jan 2010
Location: Portland, OR
Posts: 8
kevinb999 is an unknown quantity at this point
Can't see any values on dashboard

I can download code, and it runs no problem, but I cannot get the dashboard to show any response what so every. The PWM values don't change when the motors are running, the gyro I hooked up showed no change on the analogue bumper. Is there something I have to do beyond feeding watchdog and checking the module?
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2010, 15:20
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Can't see any values on dashboard

You didn't mention the compass, so you appear to have the preloaded dashboard, not the updated one. The Driver Station update doesn't do a good job of replacing some files, and the dashboard is one of them.

Run the Driver Station update twice. The first time, tell it to uninstall. The second time, install normally. Then things should work as intended.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2010, 15:25
Abrakadabra Abrakadabra is offline
Here We Go !!!
AKA: Scott Kukshtel, Mr. K
FRC #3467 (The Windham Windup!)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Windham, New Hampshire
Posts: 160
Abrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant future
Re: Can't see any values on dashboard

If you are using C++, the default Dashboard that comes on the Classmate driver station does not get updated automatically. Your program has to specifically prepare and send data to it.

See the example 2010 Vision Demo program, and study in particular how the dashboard data is packed into data "clusters" and sent to the driver's station for display on the dashboard. It sends data in two clusters: vision data, and I/O data. With some more work, you can modify the structure of these data clusters and the dashboard program in order to display your own set of custom data.

HTH.
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2010, 19:54
sircedric4's Avatar
sircedric4 sircedric4 is offline
Registered User
AKA: Darren
no team (The SS Prometheus)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Lousiana
Posts: 245
sircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond repute
Re: Can't see any values on dashboard

We also had this problem and learned the hard way that the code in the Dashboard examples has the code commented out that will update the dashboard with the cRIO data. You will need to uncomment that code before you get any data after you take the advice from the post above.
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2010, 01:03
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Re: Can't see any values on dashboard

Hello, I am also having a hard time getting our Dashboard to display this data, even adding the code that supposedly does this. I am pretty new to programming for in C++ and for FRC, although I am somewhat familiar with programing practices in general, such and calling classes and the like.
We want to return PWM values but also Sensor values such as encoders and others. The only data that the dashboard returns for us is the battery voltage.
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2010, 03:08
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Can't see any values on dashboard

Quote:
Originally Posted by Kyledoo View Post
We want to return PWM values but also Sensor values such as encoders and others. The only data that the dashboard returns for us is the battery voltage.
The battery voltage is not a good indicator to use for judging successful operation since it is included in the protocol explicitly. It does not use the data structures that you are supposed to use for sensors.

Are you modifying the Dashboard application? Have you removed all of the unused data fields and added the ones you are interested in? Remember that the data format must match on the robot and in the dashboard or the dashboard will fail to unflatten the string.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2010, 00:09
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Re: Can't see any values on dashboard

Quote:
Originally Posted by jhersh View Post
The battery voltage is not a good indicator to use for judging successful operation since it is included in the protocol explicitly. It does not use the data structures that you are supposed to use for sensors.

Are you modifying the Dashboard application? Have you removed all of the unused data fields and added the ones you are interested in? Remember that the data format must match on the robot and in the dashboard or the dashboard will fail to unflatten the string.
We have not, nor do we plan on, modifying the dashboard in any way. Are you talking about the DashboardDataExample.cpp file with all the things commented out? If so, I really do not know what to replace and where to put it. Again, sorry , but I am pretty new to this. The sensor values I want to return are pluged into the digital Sidecar opposite side from where the PWM's to the Jaguars go (I assume these are called "Digital I/O Ports", but there is no label on the Sidecar so i cannot be certain) and the values I want to display are those of the Quadrature Encoders we have on Channels (1,2) and (3,4).
I am working with the default code SimpleTemplate except that it has been switched for Tank Drive, the amount of time moving forward in Autonomous has been changed, and I have declared and initalized the Encoders and #include "DashboardDataFormat.h" . There has been no change to the DashboardDataFormat.h or .cpp, and yes I have copied them into the directory of the project. Also, I just mentioned the battery voltage because I have read posts about teams not receiving this reading.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2010, 00:57
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Can't see any values on dashboard

Quote:
Originally Posted by Kyledoo View Post
We have not, nor do we plan on, modifying the dashboard in any way.
I recommend that you do modify it. You should customize it to show exactly what you want it to.

Quote:
Originally Posted by Kyledoo View Post
Are you talking about the DashboardDataExample.cpp file with all the things commented out? If so, I really do not know what to replace and where to put it.
That's the file I'm talking about. All the commented out sections are examples. You don't need them once you remove the corresponding variable on the dashboard side.

Quote:
Originally Posted by Kyledoo View Post
Again, sorry , but I am pretty new to this. The sensor values I want to return are pluged into the digital Sidecar opposite side from where the PWM's to the Jaguars go (I assume these are called "Digital I/O Ports", but there is no label on the Sidecar so i cannot be certain) and the values I want to display are those of the Quadrature Encoders we have on Channels (1,2) and (3,4).
Those are digital inputs... it sounds like you've set up the encoder correctly.

Quote:
Originally Posted by Kyledoo View Post
I am working with the default code SimpleTemplate except that it has been switched for Tank Drive, the amount of time moving forward in Autonomous has been changed, and I have declared and initalized the Encoders and #include "DashboardDataFormat.h" . There has been no change to the DashboardDataFormat.h or .cpp, and yes I have copied them into the directory of the project.
Sounds straightforward. Now you just change the data type to the dashboard.

Start simple. Remove everything from the dashboard data on both the robot and on the dashboard. Add one INT32 to the robot code and to the dashboard... make sure that works, then add in any other data you want to display on the dashboard.
Reply With Quote
  #9   Spotlight this post!  
Unread 02-02-2010, 15:21
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Re: Can't see any values on dashboard

Quote:
Originally Posted by jhersh View Post
I recommend that you do modify it. You should customize it to show exactly what you want it to.
And how do you go about modifying it?

Quote:
Originally Posted by jhersh View Post
That's the file I'm talking about. All the commented out sections are examples. You don't need them once you remove the corresponding variable on the dashboard side.
Are you talking about modifying the robot program or the dashboard?


Quote:
Originally Posted by jhersh View Post
Those are digital inputs... it sounds like you've set up the encoder correctly.



Sounds straightforward. Now you just change the data type to the dashboard.

Start simple. Remove everything from the dashboard data on both the robot and on the dashboard. Add one INT32 to the robot code and to the dashboard... make sure that works, then add in any other data you want to display on the dashboard.
Where is the dashboard code? is this the dashboard class?
Reply With Quote
  #10   Spotlight this post!  
Unread 02-02-2010, 16:41
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Can't see any values on dashboard

Quote:
Originally Posted by Kyledoo View Post
And how do you go about modifying it?
The dashboard application is a LabVIEW program that runs on the classmate (or some other machine, and you can write a new one from scratch in any language you prefer). From the LabVIEW getting started screen, one of the options under New is to create a "FRC Dashboard Project". This will create a new project that has all the framework you need to implement the dashboard. On the left side of the diagram, it has a "cluster" defined (same as a struct in C) with all the data that it will parse... one for high priority and one for low priority. You will notice that this set of data matches that in the DashboardDataFormat.cpp.

Quote:
Originally Posted by Kyledoo View Post
Are you talking about modifying the robot program or the dashboard?
Both. You should change the format of the structure to include the data that you are interested in displaying. The structure has to be the same on the dashboard and the robot code.
Reply With Quote
  #11   Spotlight this post!  
Unread 02-02-2010, 17:39
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Re: Can't see any values on dashboard

Quote:
Originally Posted by jhersh View Post
The dashboard application is a LabVIEW program that runs on the classmate (or some other machine, and you can write a new one from scratch in any language you prefer). From the LabVIEW getting started screen, one of the options under New is to create a "FRC Dashboard Project". This will create a new project that has all the framework you need to implement the dashboard. On the left side of the diagram, it has a "cluster" defined (same as a struct in C) with all the data that it will parse... one for high priority and one for low priority. You will notice that this set of data matches that in the DashboardDataFormat.cpp.



Both. You should change the format of the structure to include the data that you are interested in displaying. The structure has to be the same on the dashboard and the robot code.
Thank You!! Everyone kept saying MODIFY THE DASHBOARD!! but I am having enough trouble figuring out the encoders right now, and we have more sensors we want to set up. Where is the diagram though, I see the project explorer and it lets me open of the GUI. Other than figuring that out, I have never used labview. Since you have been so helpful, would you mind me asking you about an Encoder Example, maybe even one that sends it to the dashboard? If you could point me to something that would be very helpful. WPI documentation seems to be very lacking in the encoder area.
Reply With Quote
  #12   Spotlight this post!  
Unread 03-02-2010, 14:41
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Can't see any values on dashboard

Quote:
Originally Posted by Kyledoo View Post
Thank You!! Everyone kept saying MODIFY THE DASHBOARD!! but I am having enough trouble figuring out the encoders right now, and we have more sensors we want to set up. Where is the diagram though, I see the project explorer and it lets me open of the GUI. Other than figuring that out, I have never used labview. Since you have been so helpful, would you mind me asking you about an Encoder Example, maybe even one that sends it to the dashboard? If you could point me to something that would be very helpful. WPI documentation seems to be very lacking in the encoder area.
Here's some code for unit testing the Encoder class:

Code:
	double position4x, position2x, position1x;
	DigitalInput qA(5); // Digital I/O 5 on slot 4
	DigitalInput qB(6); // Digital I/O 6 on slot 4
	Encoder encoder4X(qA, qB, true);
	Encoder encoder2X(qA, qB, true, Encoder::k2X);
	Encoder encoder1X(qA, qB, true, Encoder::k1X);
	// 6 inch wheel (pi*d) is 18.85 inch circumference; 24:40 tooth sprockets; 250 pulses per rev.
	encoder4X.SetDistancePerPulse(18.85 * 0.6 / 250.0);
	encoder2X.SetDistancePerPulse(18.85 * 0.6 / 250.0);
	encoder1X.SetDistancePerPulse(18.85 * 0.6 / 250.0);
	Jaguar rightMotor(2);
	rightMotor.Set(-1.0);
	Wait(2.0); // wait for motor to get up to speed
	encoder4X.Reset();
	encoder2X.Reset();
	encoder1X.Reset();
	encoder4X.Start(); // start counting
	encoder2X.Start();
	encoder1X.Start();
	Wait(5.0); // wait for some distance to be covered
	position4x = encoder4X.GetDistance(); // get position in inches
	position2x = encoder2X.GetDistance();
	position1x = encoder1X.GetDistance();
This code is only interested in position, not speed. Hope this helps.

-Joe

Last edited by jhersh : 03-02-2010 at 14:46. Reason: Make it a bit more interesting...
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LabVIEW Video Tutorial: Customizing The FRC Dashboard To See Your Data LVMastery NI LabVIEW 0 10-02-2009 13:50
Dashboard View of Pan and Tilt Servo Values JoeXIII'007 Programming 1 02-02-2005 22:34
Bug? Can't seem to delete any of my PMs DanL CD Forum Support 2 15-12-2003 23:12
You can't see through an untouched starting wall of boxes Digo General Forum 31 11-01-2003 12:01


All times are GMT -5. The time now is 03:28.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi