Go to Post We need to celebrate great things because good enough isn't inspiring. - Andrew Schreiber [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
  #16   Spotlight this post!  
Unread 12-04-2010, 16:30
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by Joe Ross View Post
It's specifically allowed by <R60>.
Then all sounds good then for something like this.

-Tanner
  #17   Spotlight this post!  
Unread 12-04-2010, 16:34
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Outputting Data Onto Computer Screen

I CAN put an arry of LEDs on the robot to light up each led according to the sensor input... That would be pretty cool
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #18   Spotlight this post!  
Unread 12-04-2010, 16:39
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,080
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by davidthefat View Post
I CAN put an arry of LEDs on the robot to light up each led according to the sensor input... That would be pretty cool
Yup, if you are in Atlanta check out 33, they do just this. They have 3 colors of light bars on their bot to serve as visual feedback.

EDIT: 2337 uses the vibration of the xbox controller to provide feedback to their driver, just another way of doing it.
__________________




.
  #19   Spotlight this post!  
Unread 12-04-2010, 16:56
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,188
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Outputting Data Onto Computer Screen

Any data visualization should be done off-board the target (cRIO). The robot doesn't care what you see on the screen, so why should it do any extra work to put it there? You just need to set up your robot to pipe the required data to an external viewer.

The dashboard classes built into WPILib are probably the easiest way to pull data off of the robot. The Labview example dashboard is probably the easiest way to view this data. You don't need to worry about any of the transport methods, and can just concentrate on doing things that matter. We used a custom Labview dashboard quite frequently to plot sensor inputs/motor outputs over time to help tune our control loops.

If you really are opposed to using free functionality, you can set up your own socket connection to the target and pump the data through manually. Or run a http server on the robot and fetch selective data with http requests and return JSON/XML. Or whatever you want, really.

Edit: I forgot about this. Seems pretty cool. http://code.google.com/p/webdma/

Last edited by Tom Bottiglieri : 12-04-2010 at 17:00.
  #20   Spotlight this post!  
Unread 12-04-2010, 21:52
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: Outputting Data Onto Computer Screen

As has already been said, you can run notepad as your dashboard if you like. The key is that it listens on the DB port and pulls the data from the data streams. Also said, you don't need to build bitmaps or renderings on the cRIO. Sure, you can do it if you try hard enough, but the fact that the cRIO doesn't have a video card might be a clue that it was designed for something else.

If you are interested in doing OpenGL programming, you can find many frameworks and toolkits to assist you in the language you choose, and yes, the scene graph, sometimes called the 3D Picture Control, will do 3D in LV.

Honestly, I don't think you need OpenGL. LV has a display called the intensity graph which maps a 2D numeric field into color-coded display. It doesn't do contours and fancier stuff, but it does fast display, typically of spectrograms, but other times data from 2D microphone arrays, radio telescopes, etc.

Greg McKaskle
  #21   Spotlight this post!  
Unread 13-04-2010, 18:54
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Outputting Data Onto Computer Screen

You can also get data with the ZomB Dashboard System. (http://firstforge.wpi.edu/sf/sfmain/....zombdashboard)
It has all kinds of ways to display data: graphs, on/off, 3-ways, analog value displays, tacos, etc...
you can even create your own dashboard, just drag and drop (and a few other small steps) I will be writing some more documentation soon...
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #22   Spotlight this post!  
Unread 13-04-2010, 19:58
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: Outputting Data Onto Computer Screen

Generally, a graph of data vs time is quite enough. For example, I have all of my root classes setup to graph the analog input(s), setpoint(s), motor output(s), and other feedback data on a graph almost full screen. This dosen't run when I do a full build, just when I run Robot Main (works quite well). Actually, this was very useful when we broke our analog module or card (we replaced both). We saw that the arm was moving spontaneously (sorta flickering), and a probe on the voltage (in software) returned somewhere between 2.9 and 3.0 volts, but a look at the graph showed it was oscilating between 2.8 and 3.2 volts (not good). I then wrote a VI to tell me the voltage of all of the used analog channels, and about 10 minutes later (1/3 of that downloading), I had a graph of all the analog channels. Graphs and probes of variables are very easy to do in LabVIEW. Really Really easy.

As for WebDMA, the cRio is capable of hosting a webserver that has dynamic VI front panels (they can be static, static auto-reloading, or full interact-able front panels). I looked at this as a means of quickly getting more feedback data then I could fit on the dashboard, but eventually settled on a tabbed dashboard plus an interface to use when running Robot Main, because of CPU load reasons. Its just another feature LabVIEW provides to make things easier.

Still think C++ has more potential than LabVIEW? As for potential, in the long run, yes, but it will take you alot longer to get the same result. And in FIRST, we have negative time budgeted for everything, so you don't have that time.

As to the lights that Andrew mentioned, they are 12" automotive light strips, 6 total in 3 colors, off 2 Spike relays for indication of various HUD-type messages (ball in, high gear, etc). If anyone remembers the vision targets from 2006 and 2007, the green ones are from those (the red and blue ones are identical to the green ones, except in color). They have two purposes: tell the driver when he has a ball and if he is in high gear, and tell the coach if he should be yelling at the driver to shift up or down. The lights are visible from the webcasts, I hear. We also flash the lights in a sequence when we hang from the pole, a feature requested by Jim Zondag himself (this is how little we have to do to the robot between competitions, when a purely decorative software change is requested by the lead mentor)
__________________
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
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
outputting data to DS's usermessage kennypu C/C++ 26 12-02-2010 02:41
Can I download code from the RC onto my computer? Team1341TechMan Programming 2 16-10-2007 18:29
PWMs not outputting in Autonomous 937Programmers Programming 15 08-02-2007 21:25
computer LCD touch screen John Gutmann Electrical 4 14-08-2005 17:13
How do you upload an analog video onto a computer? Avarik Computer Graphics 12 30-12-2004 21:42


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

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