SachemAftershock / 2019-robot-code

Sachem Aftershock's code for FRC 2019 Destination: Deep Space
3 stars 0 forks source link

Add code to detect centroid of limelight in net tables within center swatch of frame, rumble. #23

Open JimTripi opened 5 years ago

JimTripi commented 5 years ago

These two vertical lines show the swath of pixels that when the centroid of the limelight is within along the x axis, centered about the center horizontal pixel, plus/minus some number of pixels, the robot is considered aligned if-an-only-if the robot gyro azimuth is within a similar band of the target angle of attack. When this is detected, the xbox controller is given a pulse of rumble each second.