Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
constant_acceleration_turnrate_model_test.cpp File Reference
#include "motion_lib/v2p_models/constant_acceleration_turnrate_model.hpp"
#include <gtest/gtest.h>
#include <cmath>
Include dependency graph for constant_acceleration_turnrate_model_test.cpp:

Go to the source code of this file.

Functions

 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, STRAIGHT_LINE_MOVEMENT_TEST_1)
 Test the constant acceleration and turnrate model with a straight line movement in the x axis.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, STRAIGHT_LINE_MOVEMENT_TEST_2)
 Test the constant acceleration and turnrate model with a straight line movement in the x axis.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, BACKWARDS_MOVEMENT_TEST_1)
 Test the constant acceleration and turnrate model with a backwards movement in the x axis.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, BACKWARDS_MOVEMENT_TEST_2)
 Test the constant acceleration and turnrate model with a backwards movement in the x axis.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, BACKWARDS_MOVEMENT_TEST_3)
 Test the constant acceleration and turnrate model with a backwards movement in the x axis.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, ORIENTATION_ANGLE_CAP_TEST_1)
 Test the constant acceleration and turnrate model for angle cap on the orientation update.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, ORIENTATION_ANGLE_CAP_TEST_2)
 Test the constant acceleration and turnrate model for angle cap on the orientation update.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, ORIENTATION_ANGLE_CAP_TEST_3)
 Test the constant acceleration and turnrate model for angle cap on the orientation update.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, ORIENTATION_ANGLE_CAP_TEST_4)
 Test the constant acceleration and turnrate model for angle cap on the orientation update.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, ORIENTATION_ANGLE_CAP_TEST_5)
 Test the constant acceleration and turnrate model for angle cap on the orientation update.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, CURVILINEAR_MOVEMENT_TEST_1)
 Test the constant acceleration and turnrate model in a curvilinear movement with a non-zero orientation.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, CURVILINEAR_MOVEMENT_TEST_2)
 Test the constant acceleration and turnrate model in a curvilinear movement with a negative orientation.
 
 TEST (CONSTANT_ACCELERATION_TURNRATE_MODEL, CURVILINEAR_MOVEMENT_TEST_3)
 Test the constant acceleration and turnrate model in a straight line movement with a perpendicular orientation.
 

Function Documentation

◆ TEST() [1/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
BACKWARDS_MOVEMENT_TEST_1   
)

Test the constant acceleration and turnrate model with a backwards movement in the x axis.

  • negative vx

Definition at line 76 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [2/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
BACKWARDS_MOVEMENT_TEST_2   
)

Test the constant acceleration and turnrate model with a backwards movement in the x axis.

  • positive vx (paradox)

Definition at line 106 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [3/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
BACKWARDS_MOVEMENT_TEST_3   
)

Test the constant acceleration and turnrate model with a backwards movement in the x axis.

  • negative vy (paradox)

Definition at line 136 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [4/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
CURVILINEAR_MOVEMENT_TEST_1   
)

Test the constant acceleration and turnrate model in a curvilinear movement with a non-zero orientation.

Definition at line 316 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [5/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
CURVILINEAR_MOVEMENT_TEST_2   
)

Test the constant acceleration and turnrate model in a curvilinear movement with a negative orientation.

Definition at line 346 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [6/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
CURVILINEAR_MOVEMENT_TEST_3   
)

Test the constant acceleration and turnrate model in a straight line movement with a perpendicular orientation.

Definition at line 376 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [7/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
ORIENTATION_ANGLE_CAP_TEST_1   
)

Test the constant acceleration and turnrate model for angle cap on the orientation update.

  • 2PI

Definition at line 166 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [8/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
ORIENTATION_ANGLE_CAP_TEST_2   
)

Test the constant acceleration and turnrate model for angle cap on the orientation update.

  • 3PI

Definition at line 196 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [9/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
ORIENTATION_ANGLE_CAP_TEST_3   
)

Test the constant acceleration and turnrate model for angle cap on the orientation update.

  • -3PI

Definition at line 226 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [10/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
ORIENTATION_ANGLE_CAP_TEST_4   
)

Test the constant acceleration and turnrate model for angle cap on the orientation update.

  • 3PI/2

Definition at line 256 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [11/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
ORIENTATION_ANGLE_CAP_TEST_5   
)

Test the constant acceleration and turnrate model for angle cap on the orientation update.

  • -5PI/2

Definition at line 286 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [12/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
STRAIGHT_LINE_MOVEMENT_TEST_1   
)

Test the constant acceleration and turnrate model with a straight line movement in the x axis.

  • positive vx

Definition at line 15 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function:

◆ TEST() [13/13]

TEST ( CONSTANT_ACCELERATION_TURNRATE_MODEL  ,
STRAIGHT_LINE_MOVEMENT_TEST_2   
)

Test the constant acceleration and turnrate model with a straight line movement in the x axis.

  • positive vx

Definition at line 46 of file constant_acceleration_turnrate_model_test.cpp.

Here is the call graph for this function: