Team-2502 / RobotCode2018

All of our code for our 2018 robot.
GNU General Public License v3.0
3 stars 0 forks source link

PID tuning does not work for left motors #39

Closed andrewgazelka closed 6 years ago

andrewgazelka commented 6 years ago

PID tuning does not work for left drive train motors (it does for right). This is almost surely because the left talons are reversed. Even when the left motors are set to inverted, the proportional error still grows when getting closer and closer to the target velocity. This makes it seem like talon is thinking the motor is getting further (going in the opposite direction) from desired when actually getting closer.

ritikmishra commented 6 years ago

On herschel, one side still uses a quadrature encoder, whilst the other uses CTRE mag encoders. I do not remember which, but you can take a peek when the robot bottom is visible while it is on the cart.

andrewgazelka commented 6 years ago

As of a ~week ago both now use CTRE mag encoders :)

andrewgazelka commented 6 years ago

This needs to work soon for pure pursuit since voltage ratios != wheel speed ratios, and pure pursuit relies on these ratios to function.

andrewgazelka commented 6 years ago

Update: @MDW01 thinks he inverted the right talons, but it seems like both sides are now inverted. Can some programmer verify this?

andrewgazelka commented 6 years ago

Fixed after @MDW01 changed some things w/ electronics.