Team612 / 612-2016

FRC Team 612's 2016 code for First Stronghold
GNU General Public License v2.0
9 stars 6 forks source link

Making sure lifting the shooter doesn't move the target out of the field of view #138

Closed calvin-godfrey closed 8 years ago

calvin-godfrey commented 8 years ago

This is more of a reminder for me than anything. I dunno if we have a command that rotates the shooter to the right angle, but once we have this we need to make sure that we don't lift it to that point until the robot is centered on the target. My idea for doing this was having a boolean isCentered that becomes true when the haptic feedback is given and the robot is centered. It also checks if the lowest y values of the bounding box is below some value (say 5), and if it is, stop lifting the shooter until the boolean isCentered is true.

toastertaster commented 8 years ago

:+1: for using markdown to use monospace fonts! :tophat:

WardBenjamin commented 8 years ago

This should probably be revised because CAD did not inform us that the camera would not fit on the shooter itself, so it is now beside it. This will affect the distance and angle calculations for all three axes.

WardBenjamin commented 8 years ago

Not a problem anymore, camera not on the shooter itself.