Go to Post Gotta love it... FIRST's GDC...providing entertainment to loads of bored Bostonian FIRST'ers on a friday night. - 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 03-02-2004, 10:54
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Dashboard Fun

Ok, so I dug up my Dashboard program from last year, and I've been working on updating it to work with this year's OI. I ran into a small problem though.

The analog inputs on the robot have 10 bit registers, as far as I can tell. We can only output bytes, 8 bits, back to the robot. The easiest way is to just chop off the two lowest bits, which may help to reduce the noise on the current sensors, but might hinder other applications. The only other idea I could think of was to use two bytes, and match it all back up once the computer receives the data.

Can anyone else building a dashboard program offer any input on how they're working around this rather annoying problem?

Lastly, anyone who wants a simple C++ console dashboard program, let me know and when I'm done I'll put it in the white papers. We use this as a backend, mostly because I never learned C++ GUIs, and we found a way to make much cooler GUIs anyways . Give me a few days though, as I think my priority this week is getting my Eagle stuff into council...
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #2   Spotlight this post!  
Unread 03-02-2004, 11:00
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Dashboard Fun

I'd like to see the C++ backend. Thanks for offering.
__________________

  #3   Spotlight this post!  
Unread 03-02-2004, 11:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Dashboard Fun

Quote:
Originally Posted by Ian W.
Ok, so I dug up my Dashboard program from last year, and I've been working on updating it to work with this year's OI. I ran into a small problem though.

The analog inputs on the robot have 10 bit registers, as far as I can tell. We can only output bytes, 8 bits, back to the robot. The easiest way is to just chop off the two lowest bits, which may help to reduce the noise on the current sensors, but might hinder other applications. The only other idea I could think of was to use two bytes, and match it all back up once the computer receives the data.

Can anyone else building a dashboard program offer any input on how they're working around this rather annoying problem?

Lastly, anyone who wants a simple C++ console dashboard program, let me know and when I'm done I'll put it in the white papers. We use this as a backend, mostly because I never learned C++ GUIs, and we found a way to make much cooler GUIs anyways . Give me a few days though, as I think my priority this week is getting my Eagle stuff into council...
Hi Ian,

You can also send the analog value as a delta change from the last value sent which will generally be a smaller number. Implementation assumes the analog value starts at 0 or your dashboard waits a couple of transmission cycles for the delta to add up the first time.

Are you close to your 18th birthday?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #4   Spotlight this post!  
Unread 03-02-2004, 13:26
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
Re: Dashboard Fun

Ian,

If you're going to build a better Dashboard, how about putting in some kind of analog display for analog values? I was pretty surprised to see numerical-only display in IFI's Dashboard. Even a simple bar graph would be a huge improvement:

192: XXXXXXX--
127: XXXX----
64: XX------


I would be your best friend forever, or at least for the next month.
  #5   Spotlight this post!  
Unread 03-02-2004, 19:22
Jeff_Rice's Avatar
Jeff_Rice Jeff_Rice is offline
ElementisRegamusProelium
#1359
Team Role: Programmer
 
Join Date: Dec 2002
Location: Linn County
Posts: 283
Jeff_Rice will become famous soon enoughJeff_Rice will become famous soon enough
Re: Dashboard Fun

Can you explain how you accessed the serial port? I would appreciate it very much.
__________________
"He said my name is Private Andrew Malone
If you're reading this then I didn't make it home
But for every dream that's shattered another one comes true
This car was once a dream of mine now it belongs to you
And though you may take her and make her your own
You'll always be riding with Private Malone" David Ball, "Private Malone"
  #6   Spotlight this post!  
Unread 03-02-2004, 21:53
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Dashboard Fun

Quote:
Originally Posted by gnormhurst
Ian,

If you're going to build a better Dashboard, how about putting in some kind of analog display for analog values? I was pretty surprised to see numerical-only display in IFI's Dashboard. Even a simple bar graph would be a huge improvement:

192: XXXXXXX--
127: XXXX----
64: XX------


I would be your best friend forever, or at least for the next month.
Well, I hate to burst any bubbles, but that parts mostly for the Flash MX frontend.

The way me and Dan (SuperDan) set this up was on a coach bus going to Annapolis last year, so it's quirky ;-). Basically, my backend is C++, and it accesses the serial port (which Flash MX cannot do), and writes it out to a file. It loops until forever, constantly updating said file.

Flash MX runs, constantly reading said file, for infinity. This Flash MX program is the nice, pretty, amazing GUI part, but unfortunately, it's going to be completely tailored to our robot. So we'll probably offer it out to the masses if we can make it decent, but it won't do you guys much good.

However, you can take the backend (once I get it working) and create your own Flash MX program to read in variables from the backend. It'll be set up very easy, anyone who programmed the robot will be able to modify the backend to your purposes.

Once again though, give me a bit of time, maybe I'll hack some quick (very poor) CLI interface with some sort of graph like that. I know no way of easily updating though, other than clearing and rewritting the screen. I'll see if that's even feasible, but give me some time .
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #7   Spotlight this post!  
Unread 03-02-2004, 21:55
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Dashboard Fun

Quote:
Originally Posted by Mark McLeod
Hi Ian,

You can also send the analog value as a delta change from the last value sent which will generally be a smaller number. Implementation assumes the analog value starts at 0 or your dashboard waits a couple of transmission cycles for the delta to add up the first time.

Are you close to your 18th birthday?
That's an interesting idea, but I'm not sure if that'll work either, I have to figure out how much the current sensors can fluctuate in a given cycle. If it's too much, I'm still stuck back at square one. If you guys manage to test them out and get some values, please pass them on, otherwise we'll be testing that soon enough.

And I turn 18 May 14th, so I have plenty of time (especially since I'll be getting the stuff into council by next week, on pain of death by my dad ).
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #8   Spotlight this post!  
Unread 03-02-2004, 21:57
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Dashboard Fun

Quote:
Originally Posted by Jeff_Rice
Can you explain how you accessed the serial port? I would appreciate it very much.
There was a white paper put up by Rob Bayer a year or two ago, try searching for that. If you can't find that, I'll write one up I guess, but you'll have to give me a few days on that as well. Also, keep in mind, this is all for Windows, not for Linux/Mac OSX, as I don't know how to do it under those OSes. Even though I run Linux at home, I still don't know enough to program a great deal for it, if that makes any sense .
__________________
AIM --> Woloi
Email --> ian@woloschin.com
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
New dashboard packet spec Ameya Programming 2 08-01-2004 19:59
Just for fun. archiver 2000 7 24-06-2002 00:16
Dashboard Decoder Release Version 1.0 Now Available! archiver 2000 1 23-06-2002 22:50
Dashboard Viewer Khalicl13 Technical Discussion 8 15-06-2001 23:36
fun fun fun.... Brian Savitt Regional Competitions 0 31-05-2001 20:59


All times are GMT -5. The time now is 23:58.

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