
03-02-2004, 11:40
|
 |
 |
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,801
|
|
|
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
|