CARLA
Public Member Functions | Public Attributes | Private Attributes | List of all members
PID Class Reference

#include <AckermannController.h>

+ Collaboration diagram for PID:

Public Member Functions

 PID ()=default
 
 PID (float Kp, float Ki, float Kd)
 
void Reset ()
 
float Run (float Input, float DeltaTime)
 
void SetTargetPoint (float Point)
 
 ~PID ()=default
 

Public Attributes

float Kd = 0.0f
 
float Ki = 0.0f
 
float Kp = 0.0f
 

Private Attributes

float Derivative = 0.0f
 
float Integral = 0.0f
 
float LastError = 0.0f
 
float LastInput = 0.0f
 
float MaxOutput = 1.0f
 
float MinOutput = -1.0f
 
float Proportional = 0.0f
 
float SetPoint
 

Detailed Description

Definition at line 16 of file AckermannController.h.

Constructor & Destructor Documentation

◆ PID() [1/2]

PID::PID ( )
default

◆ PID() [2/2]

PID::PID ( float  Kp,
float  Ki,
float  Kd 
)
inline

Definition at line 20 of file AckermannController.h.

References ~PID().

+ Here is the call graph for this function:

◆ ~PID()

PID::~PID ( )
default

Referenced by PID().

+ Here is the caller graph for this function:

Member Function Documentation

◆ Reset()

void PID::Reset ( void  )
inline

Definition at line 48 of file AckermannController.h.

References Derivative, Integral, LastError, LastInput, MaxOutput, MinOutput, and Proportional.

Referenced by FAckermannController::Reset().

+ Here is the caller graph for this function:

◆ Run()

float PID::Run ( float  Input,
float  DeltaTime 
)
inline

Definition at line 28 of file AckermannController.h.

References Derivative, Integral, Kd, Ki, Kp, LastError, LastInput, MaxOutput, MinOutput, Proportional, and SetPoint.

Referenced by FAckermannController::RunControlAcceleration(), and FAckermannController::RunControlSpeed().

+ Here is the caller graph for this function:

◆ SetTargetPoint()

void PID::SetTargetPoint ( float  Point)
inline

Definition at line 23 of file AckermannController.h.

References SetPoint.

Referenced by FAckermannController::RunControlAcceleration(), and FAckermannController::RunControlSpeed().

+ Here is the caller graph for this function:

Member Data Documentation

◆ Derivative

float PID::Derivative = 0.0f
private

Definition at line 74 of file AckermannController.h.

Referenced by Reset(), and Run().

◆ Integral

float PID::Integral = 0.0f
private

Definition at line 73 of file AckermannController.h.

Referenced by Reset(), and Run().

◆ Kd

float PID::Kd = 0.0f

◆ Ki

float PID::Ki = 0.0f

◆ Kp

float PID::Kp = 0.0f

◆ LastError

float PID::LastError = 0.0f
private

Definition at line 76 of file AckermannController.h.

Referenced by Reset(), and Run().

◆ LastInput

float PID::LastInput = 0.0f
private

Definition at line 77 of file AckermannController.h.

Referenced by Reset(), and Run().

◆ MaxOutput

float PID::MaxOutput = 1.0f
private

Definition at line 69 of file AckermannController.h.

Referenced by Reset(), and Run().

◆ MinOutput

float PID::MinOutput = -1.0f
private

Definition at line 68 of file AckermannController.h.

Referenced by Reset(), and Run().

◆ Proportional

float PID::Proportional = 0.0f
private

Definition at line 72 of file AckermannController.h.

Referenced by Reset(), and Run().

◆ SetPoint

float PID::SetPoint
private

Definition at line 65 of file AckermannController.h.

Referenced by Run(), and SetTargetPoint().


The documentation for this class was generated from the following file: