Go to Post note to self: do not use robot to retrieve cars from water. - Greg Marra [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-22-2009, 11:27 PM
LinuxMercedes LinuxMercedes is offline
Real men use Macs
FRC #1444 (Lightning Lancers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: St. Louis, MO
Posts: 22
LinuxMercedes is an unknown quantity at this point
Analog input delay problems

I've been messing with the analog inputs on both the driver's station and the cRio itself and have noticed a few weird things.

First, it seems to provide values between 0 and 1000. I'm assuming that this is multiplying the actual voltage by 200 since it would be kinda creepy if it was putting 1000 volts through those inputs...

Second, they seem to be mildly inaccurate. A full-open pot reads values between roughly 990 and 1100. This might be just the pot that I was using.

Third, and most importantly, there is a HUGE lag between changing the pot and getting the reading back at the debug console. It's roughly 20 seconds. We've determined that it's not a printf() buffer that's filling up faster than we can read it. Does anyone know why we'd have a delay like that, and how could we fix it?

Thanks!
__________________
Reply With Quote
 


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
Analog Input Errors... Tach'ko Electrical 1 01-11-2008 11:37 AM
HELP: analog input Tottanka Programming 19 02-18-2007 07:27 PM
Analog Input Trouble Matt Krass Programming 10 01-20-2005 09:09 PM
Resistance to Analog Input Value. Josh Hambright Electrical 12 04-15-2003 04:12 PM
DC Motor current to an Analog Input junkyarddawg Motors 43 04-04-2002 03:53 PM


All times are GMT -5. The time now is 09:35 AM.

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