Go to Post "Congratulations to our FIRST team coming back from the championships in St. Louis." (We all applaud) "Remember, if you're not FIRST, you're last!" - Our pilot on the second plane back home. - demosthenes2k8 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 16-02-2006, 22:38
colman77
 
Posts: n/a
digital inputs lag 0.5-1.0 second before registering change

It appears as though there's some sort of buffer or something on our digital in's...
We noticed that our banner sensors had a 0.5-1.0 second lagtime in registering the change from a 1 to a 0.
Then we took a pwn cable and shorted out the white to the black, and noticed the same phenomenon... in other words, it's something in the programing or the RC hardware.

for testing, we were using...
- default code

- a printf statement in user_routines_fast.c, in the function where it says to put code you wish to be executed every program loop (I don't remember the function name... but it was second to last I believe)

- rc_dig_in01 and rc_dig_in07, same thing happened on both

We'd connect black to white, and watch printf keep spitting out 1's for about .5 to 1 second, then it'd go to zero. Disconnect, watch 0's print out for .5-1.0 secs, then change to 1.

What is going on???
 


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
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Digital Inputs interfering with each other Bongle Programming 8 23-02-2004 11:18
digital inputs not valid just after initialization? WizardOfAz Programming 2 26-01-2004 13:21
Change to Initializing Inputs and Outputs Jferrante Programming 4 07-01-2003 11:36
Wife 1.0 archiver 2000 0 23-06-2002 22:04


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

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