Quote:
Originally Posted by AustinH
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.