Quote:
Originally Posted by Kage2416
My team's robot has two different ways of scoring, one on one side, "the front", and one on the other side, "the back." The reason I put those in quotation marks is due to the fact that both sides may be considered the front of the robot. Our question is, how can we flip the coding of the robot so we can easily switch from one side of the robot being controlled by moving forward on the remote, to the other side being controlled like that. It's mainly so the drive team has an easier way of controlling the robot in the case that we cannot use one way to score. Any help would be appreciated.
|
You can simply have a command that just outputs a variable that switches between the straight output of your joystick or the reversed axis of your joystick that you want to oppose. Then plug this variable into your drive class.