Go to Post If anything, I believe Battle Bots is in the best interest of FIRST. Battlebots helps to create an interest in robotics, and FIRST gives us the opportunity to participate in a robotics program. - Adare180 [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 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
  #2   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 12:36.

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