Class PDFController

  • All Implemented Interfaces:
    BaseController

    @Deprecated(since="October 2020",
                forRemoval=true)
    public class PDFController
    extends java.lang.Object
    implements BaseController
    Deprecated, for removal: This API element is subject to removal in a future version.
    A PDFController is a simple PD + FeedForward calculation.
    This is helpful for calculating steering gains
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFController​(PDFGains gains, boolean signedFF)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a PDFController
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      double calculate​(double error, double dt)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Calculate the controller output with FeedForward
      double calculate​(double error, double dt, boolean enableFF)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Calculate the controller output
      void reset()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Reset the controller
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PDFController

        public PDFController​(PDFGains gains,
                             boolean signedFF)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Create a PDFController
        Parameters:
        gains - PDF gains
        signedFF - Should FF be inverted if the output is negative?
    • Method Detail

      • calculate

        public double calculate​(double error,
                                double dt)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Calculate the controller output with FeedForward
        Specified by:
        calculate in interface BaseController
        Parameters:
        error - System error
        dt - Delta time
        Returns:
        Output
      • calculate

        public double calculate​(double error,
                                double dt,
                                boolean enableFF)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Calculate the controller output
        Parameters:
        error - System error
        dt - Delta time
        enableFF - Set this to false to bypass the FeedForward calculation
        Returns:
        Output
      • reset

        public void reset()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Reset the controller
        Specified by:
        reset in interface BaseController