CARLA
Loading...
Searching...
No Matches
PID Class Reference

#include <AckermannController.h>

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 Kd, Ki, and Kp.

◆ ~PID()

PID::~PID ( )
default

Member Function Documentation

◆ Reset()

void PID::Reset ( )
inline

◆ Run()

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

◆ SetTargetPoint()

void PID::SetTargetPoint ( float Point)
inline

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: