first95 / FRC2016

The codebase for our 2016 robot
GNU General Public License v2.0
2 stars 1 forks source link

Create auto aim move #15

Closed jwalthour closed 8 years ago

jwalthour commented 8 years ago

This is composed of several parts, as per our discussion:

  1. Determination of onscreen angle between target and camera boresight, in elevation and in azimuth
    • this should be continuously updated, since the top of the target might be above the top of the screen at the start
  2. Determination of range to target, based on the current shooter elevation and the above.
  3. Code to use the ballistic equations to determine the elevation and roller speed required to place the apogee of the ball's flight in the center of the goal
  4. Code to slew the shooter in elevation, to yaw the robot in azimuth, and to spin up the shooter rollers, probably all at the same time. Maybe bound to a couple of different buttons. Should fire the shooter at the end of it all, when there is small enough difference between actual angles and desired angles, and small enough difference between actual roller velocity and desired roller velocity.
  5. SHould have some sort of light on the smart dashboard that lights up when we're ready to auto-aim and fire
setupminimal commented 8 years ago

My latest commit should fix all these!