Autonomous Racing  1
f1tenth Project Group of Technical University Dortmund, Germany
pid_controller.h
Go to the documentation of this file.
1 #pragma once
2 
4 {
5  public:
6  PIDController(float p, float i, float d);
7 
8  float updateAndGetCorrection(float error, float deltaTime);
9 
10  private:
11  float m_p;
12  float m_i;
13  float m_d;
14 
15  float m_previous_error;
16  float m_integral;
17 };
float updateAndGetCorrection(float error, float deltaTime)
PIDController(float p, float i, float d)