FRC1076 / RobotKitLib

Robotpy-WPILIB equivalent for raspberry pi robot kit
1 stars 1 forks source link

Added mecanumdrive file with two driveCartesian options #60

Closed IngmarNT closed 3 years ago

IngmarNT commented 3 years ago

Changed robot.py to take four motors instead of two motor groups.

Disregard the change to the driverstation, it is unrelated to the mecanum drive functionality.

EmilyRobotics commented 3 years ago

What is the difference between driveCartesianA and driveCartesianB @IngmarNT?

mcolinj commented 3 years ago

What is the difference between driveCartesianA and driveCartesianB @IngmarNT?

They are two different implementations of the algorithm to drive mecanum. I believe he has plans to use A and B buttons to switch between them so he can compare how they do as he gives them a test drive.

IngmarNT commented 3 years ago

What is the difference between driveCartesianA and driveCartesianB @IngmarNT?

driveCartesianA is using the algorithm/implementation seen in the wpilib code, and driveCartesianB is an implementation of a similar algorithm that should (hopefully) be smoother than driveCartesianA.