|
MCU
|
#include <gtest/gtest.h>#include <string>#include "PedalsSystem.h"#include <array>#include "MCU_rev15_defs.h"

Go to the source code of this file.
Functions | |
| float | get_pedal_conversion_val (float min, float max, float data) |
| PedalsParams | gen_positive_and_negative_slope_params () |
| PedalsParams | get_real_accel_pedal_params () |
| PedalsParams | get_real_brake_pedal_params () |
| PedalsParams | gen_positive_slope_only_params () |
| bool | get_result_of_double_brake_test (PedalsSystem &pedals, const AnalogConversion_s &a1, const AnalogConversion_s &a2, const AnalogConversion_s &b1, const AnalogConversion_s &b2) |
| bool | get_result_of_single_brake_test (PedalsSystem &pedals, const AnalogConversion_s &a1, const AnalogConversion_s &a2, const AnalogConversion_s &b1) |
| bool | reset_pedals_system_implaus_time (PedalsSystem &pedals) |
| TEST (PedalsSystemTesting, test_accel_and_brake_limits_plausibility) | |
| TEST (PedalsSystemTesting, test_accel_and_brake_percentages_implausibility) | |
| TEST (PedalsSystemTesting, test_accel_and_brake_pressed_at_same_time_and_activation) | |
| TEST (PedalsSystemTesting, test_implausibility_duration) | |
| TEST (PedalsSystemTesting, implausibility_latching_until_accel_released_double_brake) | |
| TEST (PedalsSystemTesting, implausibility_latching_until_accel_released_single_brake) | |
| TEST (PedalsSystemTesting, deadzone_removal_calc_double_brake_ped) | |
| TEST (PedalsSystemTesting, deadzone_removal_calc_single_brake_ped) | |
| TEST (PedalsSystemTesting, brake_value_testing_double) | |
| TEST (PedalsSystemTesting, brake_value_testing_single) | |
| TEST (PedalsSystemTesting, check_accel_never_negative_single) | |
| TEST (PedalsSystemTesting, check_accel_never_negative_double) | |
| TEST (PedalsSystemTesting, check_accel_pressed) | |
| TEST (PedalsSystemTesting, check_accel_oor) | |
| TEST (PedalsSystemTesting, check_accel1_implaus_fix) | |
| PedalsParams gen_positive_and_negative_slope_params | ( | ) |
Definition at line 21 of file pedals_system_test.h.
| PedalsParams gen_positive_slope_only_params | ( | ) |
| float get_pedal_conversion_val | ( | float | min, |
| float | max, | ||
| float | data | ||
| ) |
Definition at line 16 of file pedals_system_test.h.
| PedalsParams get_real_accel_pedal_params | ( | ) |
Definition at line 40 of file pedals_system_test.h.
| PedalsParams get_real_brake_pedal_params | ( | ) |
Definition at line 57 of file pedals_system_test.h.
| bool get_result_of_double_brake_test | ( | PedalsSystem & | pedals, |
| const AnalogConversion_s & | a1, | ||
| const AnalogConversion_s & | a2, | ||
| const AnalogConversion_s & | b1, | ||
| const AnalogConversion_s & | b2 | ||
| ) |
Definition at line 93 of file pedals_system_test.h.
| bool get_result_of_single_brake_test | ( | PedalsSystem & | pedals, |
| const AnalogConversion_s & | a1, | ||
| const AnalogConversion_s & | a2, | ||
| const AnalogConversion_s & | b1 | ||
| ) |
Definition at line 100 of file pedals_system_test.h.
| bool reset_pedals_system_implaus_time | ( | PedalsSystem & | pedals | ) |
Definition at line 108 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| brake_value_testing_double | |||
| ) |
Definition at line 426 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| brake_value_testing_single | |||
| ) |
Definition at line 452 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| check_accel1_implaus_fix | |||
| ) |
Definition at line 538 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| check_accel_never_negative_double | |||
| ) |
Definition at line 490 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| check_accel_never_negative_single | |||
| ) |
Definition at line 476 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| check_accel_oor | |||
| ) |
Definition at line 518 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| check_accel_pressed | |||
| ) |
Definition at line 504 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| deadzone_removal_calc_double_brake_ped | |||
| ) |
Definition at line 363 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| deadzone_removal_calc_single_brake_ped | |||
| ) |
Definition at line 394 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| implausibility_latching_until_accel_released_double_brake | |||
| ) |
Definition at line 303 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| implausibility_latching_until_accel_released_single_brake | |||
| ) |
Definition at line 334 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| test_accel_and_brake_limits_plausibility | |||
| ) |
Definition at line 118 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| test_accel_and_brake_percentages_implausibility | |||
| ) |
Definition at line 174 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| test_accel_and_brake_pressed_at_same_time_and_activation | |||
| ) |
Definition at line 212 of file pedals_system_test.h.
| TEST | ( | PedalsSystemTesting | , |
| test_implausibility_duration | |||
| ) |
Definition at line 273 of file pedals_system_test.h.