Open Shubbii opened 2 years ago
Steps that might-maybe-possibly let us shoot while moving, in an order that makes sense to me:
Robot relative goal position
(herein referred to as BOB cause I don't want to keep writing out Robot relative goal position
)
BOB is the angle at which the center of the Hub resides relative to robot's forward (0.0 degrees) heading. Or in other words, the angle to which the turret should be commanded to face the shooter at the hubtx
, from the current turret angletoward goal
component of the velocity vectoracross goal
component of the velocity vectoracross goal
component of the velocity vector
across goal
velocity vector is traveling to the left of the hub, we will need to aim to the right of the hub's center to actually make the ball in (since it's imparted with a velocity component that will cause it to continue to travel to the left as it flies through the air)towards goal
component of the velocity vector
towards goal
velocity component is moving away from the goal, we will need to increase the shooter speed (as though we were shooting from farther away), since the robot's velocity vector is effectively subtracting from the velocity the shooter is imparting into the ball towards the goal.^ This is a guess at an approach that might work. we will likely get smarter and revise the above as work on this problem is performed
Figure out the standard deviations for the drivetrain encoders and limelight vision Learn how to actually use the DifferentialDrivePoseEstimator class understand how to actually calculate our shooter speed and hood angle while moving and put it into code