MCU
Loading...
Searching...
No Matches
Functions
test_interfaces.cpp File Reference
#include <Arduino.h>
#include <unity.h>
#include "AMS_interface_test.h"
#include "dashboard_interface_test.h"
#include "Watchdog_interface_test.h"
#include "Coulomb_Counting_Tests.h"
#include "MCU_rev15_defs.h"
Include dependency graph for test_interfaces.cpp:

Go to the source code of this file.

Functions

void tearDown (void)
 
int runUnityTests (void)
 
void on_can_receive ()
 
void setup ()
 
void loop ()
 

Function Documentation

◆ loop()

void loop ( )

Definition at line 55 of file test_interfaces.cpp.

55 {
56
57}

◆ on_can_receive()

void on_can_receive ( )

Definition at line 43 of file test_interfaces.cpp.

43{} // do nothing

◆ runUnityTests()

int runUnityTests ( void  )

Definition at line 15 of file test_interfaces.cpp.

16{
17 UNITY_BEGIN();
18 /* TEST DASHBOARD */
19 // RUN_TEST(test_dashboard_unpacking_can_message);
20 // RUN_TEST(test_dashboard_circular_buffer);
21
22 /* TEST CAN INTERFACE*/
23 // RUN_TEST(test_can_interface_send)
24 // RUN_TEST(test_can_interface_send_and_receive_raw)
25
26 /* TEST TELEMETRY */
27 // RUN_TEST(test_telemetry_update_CAN);
28
29 /* TEST AMS */
30 RUN_TEST(test_AMS_heartbeat);
34
35 /* TEST Coulomb Counting */
36 RUN_TEST(test_initialize_charge);
37 RUN_TEST(test_calculate_SoC_em);
38 RUN_TEST(test_calculate_SoC_acu);
39
40 return UNITY_END();
41}
void test_em_measurements_CAN_message()
void test_current_shunt_CAN_message()
void test_bms_voltages_CAN_message()
void test_AMS_heartbeat()
void test_initialize_charge()
void test_calculate_SoC_em()
void test_calculate_SoC_acu()

◆ setup()

void setup ( void  )

Definition at line 45 of file test_interfaces.cpp.

45 {
46
47 delay(500);
48
49 Serial.begin(115200);
50
52
53}
int runUnityTests(void)

◆ tearDown()

void tearDown ( void  )

Definition at line 10 of file test_interfaces.cpp.

11{
12
13}