View Single Post
  #4   Spotlight this post!  
Unread 11-02-2015, 14:54
vamfun vamfun is offline
Mentor :Contol System Engineer
AKA: Chris
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2003
Location: Van Nuys, California
Posts: 182
vamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of light
Send a message via AIM to vamfun
Re: Trouble getting encoder output to work with analog trigger sources

Quote:
Originally Posted by GeeTwo View Post
The encoder class is intended for sensors which send a signal rather frequently, typically 4 times per motor revolution. I'm not familiar with the sensor you're using but this reads like you're planning to use this to keep an item between boundaries. What are you trying to control, and what does it mean when these trigger values are met?
Using it as a lift encoder. We are out of digital ports so we want to create a digital source for the encoder routine using the analog trigger output. The trigger creates a true pulse when the Greyhill output transitions above 3.5v and a low pulse when below 1.5 volts. We were able to use the trigger output to drive a counter successfully so we know its working. Just doesn't seem to work with the encoder class.
Reply With Quote