public void calcEncoders() { leftFrontDriveEncoder.calc(); rightFrontDriveEncoder.calc(); leftRearDriveCounter.calc(); rightRearDriveCounter.calc(); catapultEncoder.calc(); frontIntakeTiltPotentiometer.run(); rearIntakeTiltPotentiometer.run(); }
public void resetEncoders() { leftFrontDriveEncoder.reset(); rightFrontDriveEncoder.reset(); leftRearDriveCounter.reset(); rightRearDriveCounter.reset(); catapultEncoder.reset(); frontIntakeTiltPotentiometer.reset(); rearIntakeTiltPotentiometer.reset(); gyro.reset(); }
private void startEncoders() { // 1 foot = ??? clicks leftFrontDriveEncoder.start(); rightFrontDriveEncoder.start(); leftRearDriveCounter.start(); rightRearDriveCounter.start(); catapultEncoder.start(); frontIntakeTiltPotentiometer.reset(); rearIntakeTiltPotentiometer.reset(); gyro.reset(); }
public double getRightRearDriveEncoderAcceleration() { return (rightRearDriveCounter.getRate()); }
public double getRightRearDriveEncoderRate() { return (rightRearDriveCounter.getRate()); }
public double getLeftRearDriveEncoderRate() { return (leftRearDriveCounter.getRate()); }
public void resetDriveEncoders() { leftFrontDriveEncoder.reset(); rightFrontDriveEncoder.reset(); leftRearDriveCounter.reset(); rightRearDriveCounter.reset(); }