Class MecanumPositionEstimator

    • Constructor Detail

      • MecanumPositionEstimator

        public MecanumPositionEstimator​(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 MecanumPositionEstimator.
        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