gwhs / FalconRecharged2021

First Robotics 2021 Infinite recharge source code for team 5507 Robotic Eagles, Washington High School, San Francisco CA
Other
1 stars 4 forks source link

Add a reverse command for bounce #17

Closed jhajel closed 3 years ago

jhajel commented 3 years ago

Spinning a robot hits the markers during Bounce. Ultimately, we would like to do a swerve autonomous so that we have a position and angle for each point.

jhajel commented 3 years ago

Ok, I was thinking about our problem. I think we can fix the bounce by doing one of the following:

  1. Return the zeroGyro() and 0,0 starting pose but then make the next path relative to where we end up.
  2. Alternatively we can make that mysterious angle and initpos[] variable to be angle of the robot (gyro).

Let's try and test on Monday.

jhajel commented 3 years ago

We will need to test these 2 possible solutions on Saturday. I will not be there but Leanna has a good idea how to do it.

jhajel commented 3 years ago

Nice job getting this to work!