I’m writing an autonomous code that makes my robot turn 45º to the left or right to push the team’s colored triball in the goal. (Attached below is a gif visualizing the code)
However, this code won’t work if my robot is placed on the wrong side.
How will I be able to know which side the robot is placed on?
At the competition, you will have 6-10 qualification matches, and you will be randomly partnered with other teams at the competition. You’ll be red for some, blue for others, and you will work out with your alliance partner before the match where you’ll be starting.
Veteran teams will prepare several autonomous programs to provide flexibility when working with partners who have only one option, you might wish to do the same to make it easier to work with your alliance partners.