Quote:
Originally Posted by s5511
We are aiming to switch our feedback to a gyro (or encoders) instead, as we don't want to deal with the on-field lag associated with camera-based feedback. Are there any tutorials/resources out there for help with this sort of thing?
|
Our code may work as a (cluttered) example for this. Short version, when you take the image you also sample your gyro. You calculate your new angle for the robot based on this and feed this as the new set point to a PID with the gyro as the process variable.
https://github.com/FRC-836/2016-RoboBees-OffSeason
Quote:
Originally Posted by s5511
We also wanted to display our processed image to the Dashboard, instead of displaying the unaltered image. How would we do this?
|
Easiest way to do this is to have image processing on both the robot and the dashboard. If you use the same parameters on the dashboard as the robot you'll get the same altered image. Recompressing the processed image to the dashboard will consume significant rio processing time and should be avoided.