FTC Moving 202008

From wikidb
Revision as of 12:15, 10 August 2020 by Edc (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Encoder Notes

Documentation and tutorials

issues with pidf

Issue reported and solved

Firmware https://www.revrobotics.com/software/#exphubpreviousfirmware

api

PID


pid api

PIDCoefficients DcMotorEx

Code snipets

 DcMotorEx motorExLeft;
 motorExLeft = (DcMotorEx)hardwareMap.get(DcMotor.class, "left_drive”);
 PIDCoefficients pidOrig = motorExLeft.getPIDCoefficients(DcMotor.RunMode.RUN_USING_ENCODER);
 pidOrig.
 PIDCoefficients pidNew = new PIDCoefficients(NEW_P, NEW_I, NEW_D);
 motorExLeft.setPIDCoefficients(DcMotor.RunMode.RUN_USING_ENCODER, pidNew);
  • getVelocity in ticks per second
  • f is the tolerance