View Single Post
  #3   Spotlight this post!  
Unread 29-02-2016, 20:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Program not seeing sensor.

There is another option for detecting a momentary sensor switch that might be too fast for a polling solution. Instead of opening it as a switch, open it as a counter. That way the FPGA will notice the switch event for you even when you're not looking, and you can watch for a change in the count at whatever rate makes sense.