Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
pid_test.cpp File Reference
#include "longitudinal_controller/pid.hpp"
#include "gtest/gtest.h"
Include dependency graph for pid_test.cpp:

Go to the source code of this file.

Functions

 TEST (PidTests, TestAntiWindUp1)
 Test PID class - AntiWindUp Anti windup when output is saturated (limMax)
 
 TEST (PidTests, TestAntiWindUp2)
 Test PID class - AntiWindUp Anti windup when output is saturated (limMin)
 
 TEST (PidTests, TestAntiWindUp3)
 Test PID class - AntiWindUp Anti windup when output isnt saturated.
 
 TEST (PidTests, ProportionalTerm)
 Test PID class - calculate_proportional_term.
 
 TEST (PidTests, IntegralTerm1)
 Test PID class - calculate_integral_term error positive.
 
 TEST (PidTests, IntegralTerm2)
 Test PID class - calculate_integral_term error negative.
 
 TEST (PidTests, DerivativeTerm1)
 Test PID class - calculate_derivative_term measurement positive.
 
 TEST (PidTests, DerivativeTerm2)
 Test PID class - calculate_derivative_term measurement negative.
 
 TEST (PidTests, Output1)
 Test PID class - compute_output output not saturated.
 
 TEST (PidTests, Output2)
 Test PID class - compute_output output saturated LimMax.
 
 TEST (PidTests, Output3)
 Test PID class - compute_output output saturated LimMin.
 
 TEST (PidTests, Update1)
 Test PID class - update Test all the methods.
 

Function Documentation

◆ TEST() [1/12]

TEST ( PidTests  ,
DerivativeTerm1   
)

Test PID class - calculate_derivative_term measurement positive.

Definition at line 150 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [2/12]

TEST ( PidTests  ,
DerivativeTerm2   
)

Test PID class - calculate_derivative_term measurement negative.

Definition at line 174 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [3/12]

TEST ( PidTests  ,
IntegralTerm1   
)

Test PID class - calculate_integral_term error positive.

Definition at line 102 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [4/12]

TEST ( PidTests  ,
IntegralTerm2   
)

Test PID class - calculate_integral_term error negative.

Definition at line 126 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [5/12]

TEST ( PidTests  ,
Output1   
)

Test PID class - compute_output output not saturated.

Definition at line 198 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [6/12]

TEST ( PidTests  ,
Output2   
)

Test PID class - compute_output output saturated LimMax.

Definition at line 222 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [7/12]

TEST ( PidTests  ,
Output3   
)

Test PID class - compute_output output saturated LimMin.

Definition at line 246 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [8/12]

TEST ( PidTests  ,
ProportionalTerm   
)

Test PID class - calculate_proportional_term.

Definition at line 80 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [9/12]

TEST ( PidTests  ,
TestAntiWindUp1   
)

Test PID class - AntiWindUp Anti windup when output is saturated (limMax)

Definition at line 9 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [10/12]

TEST ( PidTests  ,
TestAntiWindUp2   
)

Test PID class - AntiWindUp Anti windup when output is saturated (limMin)

Definition at line 33 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [11/12]

TEST ( PidTests  ,
TestAntiWindUp3   
)

Test PID class - AntiWindUp Anti windup when output isnt saturated.

Definition at line 57 of file pid_test.cpp.

Here is the call graph for this function:

◆ TEST() [12/12]

TEST ( PidTests  ,
Update1   
)

Test PID class - update Test all the methods.

Definition at line 273 of file pid_test.cpp.

Here is the call graph for this function: