Class SkidSteerPositionEstimator

  • All Implemented Interfaces:
    Subsystem

    public class SkidSteerPositionEstimator
    extends AbstractPositionEstimator
    A Position Estimator for plain Skid Steer drivetrains, eg standard tank and arcade drive.
    • Constructor Detail

      • SkidSteerPositionEstimator

        public SkidSteerPositionEstimator​(ChassisParameters chassisParameters,
                                          edu.wpi.first.wpilibj.interfaces.Accelerometer accelerometer,
                                          edu.wpi.first.wpilibj.interfaces.Gyro gyro,
                                          edu.wpi.first.wpilibj.Encoder frontLeftEncoder,
                                          edu.wpi.first.wpilibj.Encoder frontRightEncoder,
                                          edu.wpi.first.wpilibj.Encoder backLeftEncoder,
                                          edu.wpi.first.wpilibj.Encoder backRightEncoder)
        Construct a new SkidSteerPositionEstimator.
        Parameters:
        chassisParameters - a physical description of the robot
        accelerometer - an accelerometer
        gyro - a gyroscope
        frontLeftEncoder - the encoder attached to the output of the front left wheel
        frontRightEncoder - the encoder attached to the output of the front right wheel
        backLeftEncoder - the encoder attached to the output of the back left wheel
        backRightEncoder - the encoder attached to the output of the back right wheel