Go to Post 5:20 - Lots of discussion about how FIRST pretty much wipes out the world of at least one object every year. - Andy Grady [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 27-10-2010, 18:03
ViperChris3's Avatar
ViperChris3 ViperChris3 is offline
Registered User
AKA: Chris Rogers
FRC #0545 (Robodawgs)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Levittown, New York
Posts: 2
ViperChris3 is an unknown quantity at this point
Custom Dashboard Program Ideas?

Hey, our team is creating a custom dashboard in LabView for the classmate. This pretty much overhauls the old standard dashboard program by making bigger video screens and providing other dials and whatnot. Does anyone have any ideas of what we can put into our program? Like for example, some indicators of some sort?
  #2   Spotlight this post!  
Unread 27-10-2010, 18:11
Dkt01's Avatar
Dkt01 Dkt01 is offline
Programming Mentor
AKA: David
FRC #1756 (Argos)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Peoria, Il
Posts: 145
Dkt01 will become famous soon enough
Re: Custom Dashboard Program Ideas?

Our team kept the basic design of the dashboard. We added a new tab to the info in the top right so we could monitor air pressure, battery voltage, and the piston position in our kicker. In competition, we didn't use it much, but for robot testing, the extra data was very helpful.
  #3   Spotlight this post!  
Unread 27-10-2010, 18:16
tutkows1's Avatar
tutkows1 tutkows1 is offline
Registered User
FRC #2077
 
Join Date: Jan 2010
Location: wisconsin
Posts: 44
tutkows1 is an unknown quantity at this point
Re: Custom Dashboard Program Ideas?

I suggest having a larger video screen, and having a space were messages from the programmer can show up. For example, you are now cocked at position three. Having a pressure gauge is also a good idea.

On a side note: were did you find a gauge that can send the air pressure as an analog signal to the control system?

Edit: More about what we did.

Last year my team didn't use the classmate for the dashboard, we sent it to another computer so we could have a larger screen and it seemed to run the feed better.

Last edited by tutkows1 : 27-10-2010 at 18:18. Reason: More about what we did
  #4   Spotlight this post!  
Unread 27-10-2010, 18:18
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Custom Dashboard Program Ideas?

Any attempt at creating a dashboard should reflect the robot, and thus you would either have to write it for last year's robot as a learning experience or wait until you write the robot-end code next year.

I have a tabbed interface that automatically switches between disabled, auto, and teleop, plus some tabs for subsystem debugging. (I included the source code in my recent CD-paper of my 2010 robot code). The camera view is not used by the drivers, but the coach can see if there are hidden balls. We never look at the dashboard, except the camera image, unless something is wrong and we need feedback information NOW. We also have an indicator of which autonomous program will run when enabled, so the operator can set it from her controls before the beginning of the match. We tried placing a yellow circle where the target should be for 3rd zone auto to assist with line up since we run 3rd zone basically all the time, but then the camera got hit by a ball and un-aligned.


You cannot send data back to the robot. Dashboard packets are one-way, going from the user code on the cRio to the dashboard application on the Classmate, but not back.

If you are planning on using the Dashboard for debugging (And are using LabVIEW), you can just put controls on your VI's (any of them) and adjust them at runtime, if you run Robot Main.vi instead of doing a full build. You can probe wires, look at graphs, and edit tuning constants in real time. When you are done, you can (after stopping execution of robot main) right-click on the control and say "Data Operations -> Make Current value default" to save it, even when you do a full build.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #5   Spotlight this post!  
Unread 27-10-2010, 19:09
Dkt01's Avatar
Dkt01 Dkt01 is offline
Programming Mentor
AKA: David
FRC #1756 (Argos)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Peoria, Il
Posts: 145
Dkt01 will become famous soon enough
Re: Custom Dashboard Program Ideas?

tutkows1:
I need to clarify. We didn't actually measure the air pressure. We just used the same sensor the air compressor uses to determine full vs. not full. If I remember right, the sensor was already one of our digital inputs, so we made a boolean indicator on the dashboard.
  #6   Spotlight this post!  
Unread 27-10-2010, 22:04
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,112
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: Custom Dashboard Program Ideas?

Quote:
Originally Posted by apalrd View Post
...plus some tabs for subsystem debugging.
This can be crucial. Having the ability to put the raw sensor values on screen is an important part of defensive programming. If the robot is misbehaving, it's nice to be able to quickly pinpoint a disconnected gyro or limit switch.

There were ideas for an additional tab that we never got around to implementing: a "preflight checklist" with appropriate indicators.
  #7   Spotlight this post!  
Unread 01-11-2010, 23:05
tutkows1's Avatar
tutkows1 tutkows1 is offline
Registered User
FRC #2077
 
Join Date: Jan 2010
Location: wisconsin
Posts: 44
tutkows1 is an unknown quantity at this point
Re: Custom Dashboard Program Ideas?

@DKt01
Oh, i has hoping you could help me in the quest to find one for a personal project.

I like the tabs for debugging.
  #8   Spotlight this post!  
Unread 05-11-2010, 17:36
ViperChris3's Avatar
ViperChris3 ViperChris3 is offline
Registered User
AKA: Chris Rogers
FRC #0545 (Robodawgs)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Levittown, New York
Posts: 2
ViperChris3 is an unknown quantity at this point
Re: Custom Dashboard Program Ideas?

Quote:
Originally Posted by tutkows1 View Post
I suggest having a larger video screen, and having a space were messages from the programmer can show up. For example, you are now cocked at position three. Having a pressure gauge is also a good idea.

On a side note: were did you find a gauge that can send the air pressure as an analog signal to the control system?

Edit: More about what we did.

Last year my team didn't use the classmate for the dashboard, we sent it to another computer so we could have a larger screen and it seemed to run the feed better.
@tutkows1

Our Robot has an analog pressure sensor on it hooked into one of the analog imputs on cRios. We played around with the data communication and have a guage on our large video screen with the air pressure. I think that the while loop on the dashboard has a slow iteration rate however, because it is quite slow responding, about 1-1.5 seconds per responce, hardly real-time.. But we might consider putting dashboard onto another computer. Did the program run faster on a different laptop than it did on classmate?
  #9   Spotlight this post!  
Unread 05-11-2010, 18:31
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Custom Dashboard Program Ideas?

The default dashboard is really slow. Apparently this is because of the graphs.
The iteration time is not set directly. The main loop iterates every time it gets a data packet from the robot. (Those data packets should be sent by the robot every time its main loop runs, and those runs are triggered by the packets coming from the driver station, etc.)

I noticed during testing that it takes around 10 seconds for the inputs to update while disabled (I have no idea why this is), and around 1.5 seconds while enabled, using the default dashboard. My custom dashboard is about 1 second, all the time. This is because of the default handling of the crio end, only updating the low priority dashboard data every 25 iterations (the high priority data, which in the default code is the tracking data, is updated every iteration).
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #10   Spotlight this post!  
Unread 05-11-2010, 19:59
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,748
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: Custom Dashboard Program Ideas?

The default dashboard setup attempts to read most of the I/O channels, and send them to the ds and dashboard about twice a second. Reading that many channels through the Apis could place quite a load on the CRIO if done at 50 hz. If wou trim the channels being read to just the ones you are using or interested in, wou could easily up the rate. It is your CPU, so use as much as you like.

Greg McKaskle
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
Custom Dashboard? Azores Programming 6 08-04-2010 13:04
Custom Dashboard Yppiz FRC Control System 1 17-02-2010 22:45
Custom Dashboard Yppiz Java 1 17-02-2010 12:27
Custom Dashboard writchie FRC Control System 7 02-03-2009 20:21
Custom dashboard program available. Interest? archiver 2001 4 24-06-2002 00:45


All times are GMT -5. The time now is 10:38.

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