View Single Post
  #7   Spotlight this post!  
Unread 08-02-2017, 14:34
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,189
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Concept Discussion: Vision Closed Loop or Encoder/Gyro PID based Closed Loop?

Quote:
Originally Posted by AustinH View Post
The Pixy we're using is tracking at 50 frames per second and spitting out signal via analog output piped straight into the RoboRIO. We're basically reading it like a potentiometer with another DIO channel used for target verification. Does anyone have any insight as to whether or not we should expect to have to use the gyroscope as described for tracking, or does that sound fast enough to use the analog signal as the input?
Don't do this. The pixy makes no guarantee of frame processing time and you may see spurious detections. I would input that analog signal into a filter that makes sure it isn't jumping around too fast (compared to how you know your robot is moving), the dump that signal into a controller which is based on the gyro or encoders. You are already going to want to tune that loop for any kind of autonomous driving, so it's not that much more work.
Reply With Quote