FRC7902 / 2021OffSeason

0 stars 1 forks source link

ArcadeDrive() parameters are switched #6

Open grgwng opened 3 years ago

grgwng commented 3 years ago

The arcadeDrive parameters are switched ("forwards" makes the robot turn, "turning" makes the robot go forward)

For an example, take a look at the driveRaw() method in DriveSubsystem. This method is used in the DriveTimeAndSpeed command. However when it uses arcadeDrive, the first parameter (which should be "forward") is zero. The second parameter (which should be "turning") is actually the forward speed.

The expected behaviour of this code should be the robot turning in place. However the robot drives forward. You can test by running DriveAndShoot command routine which has DriveTimeAndSpeed, or you can add DriveTimeAndSpeed as a autonomous command.

Possible reasons:

grgwng commented 3 years ago

PS: If there are a couple of errors saying that the import com.ctre cannot be resolved, go to the vendordeps folder and inside Phoenix.json, just add an extra line or something. Save the file and wait a bit. The errors should disappear.