View Single Post
  #3   Spotlight this post!  
Unread 16-02-2006, 22:46
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: digital inputs lag 0.5-1.0 second before registering change

Have you considered that the latency could be in the computer you are using to read the printfs? One of our mentors uses a laptop that gets about 12 seconds of latency on its serial port.

What if you make the code to immediately provide feedback to something else (say a servo) as soon as the digital input goes to one? This way you could see if the problem is really in the digital input, or if it is in the way you are reading the digital input.