Class TurningRatePIDProcessor

    • Constructor Detail

      • TurningRatePIDProcessor

        public TurningRatePIDProcessor​(DoubleSupplier yawRateSupplier,
                                       double p)
        Creates a new TurningRateClosedLoopProcessor with P and I D coefficients of 0 that does not invert sides.
        Parameters:
        yawRateSupplier - A DoubleSupplier that supplies the current yaw rate in radians per second.
        p - The P coefficient of the PID loop.
      • TurningRatePIDProcessor

        public TurningRatePIDProcessor​(DoubleSupplier yawRateSupplier,
                                       double p,
                                       double i)
        Creates a new TurningRateClosedLoopProcessor with a D coefficient of 0 that does not invert sides.
        Parameters:
        yawRateSupplier - A DoubleSupplier that supplies the current yaw rate in radians per second.
        p - The P coefficient of the PID loop.
        i - The I coefficient of the PID loop.
      • TurningRatePIDProcessor

        public TurningRatePIDProcessor​(DoubleSupplier yawRateSupplier,
                                       double p,
                                       double i,
                                       double d)
        Creates a new TurningRateClosedLoopProcessor that does not invert sides.
        Parameters:
        yawRateSupplier - A DoubleSupplier that supplies the current yaw rate in radians per second.
        p - The P coefficient of the PID loop.
        i - The I coefficient of the PID loop.
        d - The D coefficient of the PID loop.
      • TurningRatePIDProcessor

        public TurningRatePIDProcessor​(DoubleSupplier yawRateSupplier,
                                       double p,
                                       boolean invertSides)
        Creates a new TurningRateClosedLoopProcessor with I and D coefficients of 0.
        Parameters:
        yawRateSupplier - A DoubleSupplier that supplies the current yaw rate in radians per second.
        p - The P coefficient of the PID loop.
        invertSides - Whether to invert the output of the PID loop before sending it onwards.
      • TurningRatePIDProcessor

        public TurningRatePIDProcessor​(DoubleSupplier yawRateSupplier,
                                       double p,
                                       double i,
                                       boolean invertSides)
        Creates a new TurningRateClosedLoopProcessor with a D coefficient of 0.
        Parameters:
        yawRateSupplier - A DoubleSupplier that supplies the current yaw rate in radians per second.
        p - The P coefficient of the PID loop.
        i - The I coefficient of the PID loop.
        invertSides - Whether to invert the output of the PID loop before sending it onwards.
      • TurningRatePIDProcessor

        public TurningRatePIDProcessor​(@NotNull
                                       @NotNull DoubleSupplier yawRateSupplier,
                                       double p,
                                       double i,
                                       double d,
                                       boolean invertSides)
        Creates a new TurningRateClosedLoopProcessor.
        Parameters:
        yawRateSupplier - A DoubleSupplier that supplies the current yaw rate in radians per second.
        p - The P coefficient of the PID loop.
        i - The I coefficient of the PID loop.
        d - The D coefficient of the PID loop.
        invertSides - Whether to invert the output of the PID loop before sending it onwards.