Go to Post Sometimes it's not about being fair. Some people are just very good at what they do. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-03-2009, 18:01
KRibordy KRibordy is offline
Registered User
FRC #1000 (Cybearcats)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Valparaiso, IN
Posts: 36
KRibordy is an unknown quantity at this point
Laptop "Dashboard"

I've seen some teams using a laptop to display useful information about the robot, like the live camera feed and such. I think that our team is going to try and code something like this for IRI and next year's competition, but how would one go about doing this? We use Windriver for our robot.

Would you have to code the computer program in Visual Basic? Or what language? And how exactly would your program the robot to send data to it, and the computer program to receive the data?

Thanks for any help.
  #2   Spotlight this post!  
Unread 30-03-2009, 19:05
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,019
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Laptop "Dashboard"

I'm not a programmer, but I think there is standard code you can get, which works out of the box, and which can be customized. Same (sorta) as the 'standard' template for robot control.

Don
__________________

I am N2IRZ - What's your callsign?

Last edited by DonRotolo : 30-03-2009 at 19:28.
  #3   Spotlight this post!  
Unread 30-03-2009, 19:25
JeffChan's Avatar
JeffChan JeffChan is offline
Registered User
FRC #2854 (EVHS Robotics)
Team Role: Leadership
 
Join Date: Dec 2008
Rookie Year: 2009
Location: San Jose, CA
Posts: 32
JeffChan is on a distinguished road
Send a message via AIM to JeffChan Send a message via MSN to JeffChan
Re: Laptop "Dashboard"

If you're using LabView, there's a FRC Dashboard Project that can be used for your purpose.
__________________
Team Website
  #4   Spotlight this post!  
Unread 30-03-2009, 19:42
McGurky's Avatar
McGurky McGurky is offline
Geek
AKA: Kyle McGurk
FRC #1716 (Redbird Robotics)
Team Role: College Student
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Houghton, MI
Posts: 291
McGurky is just really niceMcGurky is just really niceMcGurky is just really niceMcGurky is just really nice
Re: Laptop "Dashboard"

NO he stated in his post that he uses windriver.
__________________
RTFM -Read The First Manual

You already are who you are, I may be able to show you a fancy trick or two, but the term "Better" is relative to the potential you already have.
Take a look at my website/Blog!
  #5   Spotlight this post!  
Unread 30-03-2009, 20:10
GearsOfFury's Avatar
GearsOfFury GearsOfFury is offline
Former guy that does stuff
AKA: Mark Anderson
no team
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Oswego, IL
Posts: 96
GearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to behold
Re: Laptop "Dashboard"

We used the Labview dashboard on and off in testing and found it pretty useful, mainly for the 984 byte user data packet but a bit on the camera as well.

There is a Windriver / C++ equivalent to the LabView dashboard application. I believe there is also a demo application included. There's quite a bit mentioned about the Dashboard class in the 1.1 update notes (http://first.wpi.edu/FRC/frcupdates.html)
  #6   Spotlight this post!  
Unread 30-03-2009, 20:27
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Laptop "Dashboard"

The code on the dashboard and the robot do not have to be written in the same tool. They are connected by a UDP buffer and nothing else. The only provided template was written in LV. Others have been written in C#, Java, and the like, but since this runs on the PC, I don't believe doing this in WindRiver makes sense.

To write data to the dashboard laptop using C++, use the dashboard classes already mentioned. To parse it on the diagram, use the documentation and a PC GUI capable dev tool to take the data out of the buffer.

Greg McKaskle
  #7   Spotlight this post!  
Unread 30-03-2009, 20:44
JeffChan's Avatar
JeffChan JeffChan is offline
Registered User
FRC #2854 (EVHS Robotics)
Team Role: Leadership
 
Join Date: Dec 2008
Rookie Year: 2009
Location: San Jose, CA
Posts: 32
JeffChan is on a distinguished road
Send a message via AIM to JeffChan Send a message via MSN to JeffChan
Re: Laptop "Dashboard"

Quote:
Originally Posted by McGurky View Post
NO he stated in his post that he uses windriver.
Yup I realized. Simply pointing out LabView since he did mention other programming languages.

Teams have been able to programming their robots utilizing both platforms.
__________________
Team Website
  #8   Spotlight this post!  
Unread 30-03-2009, 22:49
KRibordy KRibordy is offline
Registered User
FRC #1000 (Cybearcats)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Valparaiso, IN
Posts: 36
KRibordy is an unknown quantity at this point
Re: Laptop "Dashboard"

I'm not too skilled at programming GUI's; Visual Basic seemed the easiest for that aspect. However, if Labview has a built in dashboard, that would be able to interface with the robot, correct? Even if they're running different platforms or whatever?

I guess I've got a lot of learning to do between this season and next...
  #9   Spotlight this post!  
Unread 31-03-2009, 10:10
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: Laptop "Dashboard"

Quote:
Originally Posted by KRibordy View Post
I'm not too skilled at programming GUI's; Visual Basic seemed the easiest for that aspect. However, if Labview has a built in dashboard, that would be able to interface with the robot, correct? Even if they're running different platforms or whatever?

I guess I've got a lot of learning to do between this season and next...
Right. As a couple people have said, the Robot just sends Dashboard data over the communications channel along with other things the DS needs to know from the robot. Either of the Robot programming environments (LabVIEW or WindRiver C++) can be used to send Dashboard data in the communications packets. Both environments include example code on how to do this.

I cannot speak for the LabVIEW example, but the WindRiver example doesn't actually send useful information. Rather, it shows you how to send the data.

For the PC side, the KOP-provided version of LabVIEW (with all appropriate updates applied) has an example/template program, which you can customize, that is a GUI Dashboard which runs on a PC connected to the Driver's Station. However, all it does behind the scenes is read the network data, so, as others have suggested, it is quite possible to make a "Dashboard" in other PC-based programming environments.
  #10   Spotlight this post!  
Unread 02-04-2009, 07:44
GearsOfFury's Avatar
GearsOfFury GearsOfFury is offline
Former guy that does stuff
AKA: Mark Anderson
no team
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Oswego, IL
Posts: 96
GearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to beholdGearsOfFury is a splendid one to behold
Re: Laptop "Dashboard"

LabView gives you access to some very nifty 'front panel' GUI objects and is very easy to hook up to inputs and drive outputs from it. Having these GUI objects for our robot code debugging was one of the big reasons we went with LabView this year. I would consider it at least as easy as Visual Studio in this regard.

The example Dashboard program that comes with the KOP Labview install is super-easy to compile and get running. It tracks all of the PWM, relay, and analog outputs and inputs on the robot, displays the camera view, battery voltage, and more. By default it dumps the 984 bytes of user data to a string in a log window, but you could decode that data however you want to drive your own gages, dials, lights, etc.
Closed Thread


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
Championship Event - Where the "Random" Match Sorting Really "Shines" Travis Hoffman Championship Event 57 19-04-2007 08:06
New NEMO White Papers! "Creating a Killer Packet" and "25 Ways to Sponsor" Jessica Boucher Team Organization 0 10-08-2005 10:55
"Thunderbirds" Vs. "Team America" Which one will rule the box office? Elgin Clock Chit-Chat 3 07-09-2004 19:53
Conflict between "Initialize_Tracker()" and "pwm13 & pwm15"? Kevin? gnormhurst Programming 3 22-02-2004 02:55
how tall is the ramp when in "up" and "balanced" position??? archiver 2001 1 24-06-2002 00:54


All times are GMT -5. The time now is 02:00.

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