Пример #1
0
 public void calcEncoders() {
   leftFrontDriveEncoder.calc();
   rightFrontDriveEncoder.calc();
   leftRearDriveCounter.calc();
   rightRearDriveCounter.calc();
   catapultEncoder.calc();
   frontIntakeTiltPotentiometer.run();
   rearIntakeTiltPotentiometer.run();
 }
Пример #2
0
 public void resetEncoders() {
   leftFrontDriveEncoder.reset();
   rightFrontDriveEncoder.reset();
   leftRearDriveCounter.reset();
   rightRearDriveCounter.reset();
   catapultEncoder.reset();
   frontIntakeTiltPotentiometer.reset();
   rearIntakeTiltPotentiometer.reset();
   gyro.reset();
 }
Пример #3
0
 private void startEncoders() {
   // 1 foot = ??? clicks
   leftFrontDriveEncoder.start();
   rightFrontDriveEncoder.start();
   leftRearDriveCounter.start();
   rightRearDriveCounter.start();
   catapultEncoder.start();
   frontIntakeTiltPotentiometer.reset();
   rearIntakeTiltPotentiometer.reset();
   gyro.reset();
 }
Пример #4
0
 public double getCatapultEncoder() {
   return catapultEncoder.get();
 }
Пример #5
0
 public double getRightFrontDriveEncoderAcceleration() {
   return (rightFrontDriveEncoder.getRate());
 }
Пример #6
0
 public double getLeftFrontDriveEncoderAcceleration() {
   return (leftFrontDriveEncoder.getRate());
 }
Пример #7
0
 public double getRightFrontDriveEncoderRate() {
   return (rightFrontDriveEncoder.getRate());
 }
Пример #8
0
 public double getLeftFrontDriveEncoderRate() {
   return (leftFrontDriveEncoder.getRate());
 }
Пример #9
0
 public void resetDriveEncoders() {
   leftFrontDriveEncoder.reset();
   rightFrontDriveEncoder.reset();
   leftRearDriveCounter.reset();
   rightRearDriveCounter.reset();
 }
Пример #10
0
 public void resetCatapultEncoder() {
   catapultEncoder.reset();
 }