MCU
Loading...
Searching...
No Matches
test
test_interfaces
test_interfaces.cpp
Go to the documentation of this file.
1
#include <Arduino.h>
2
#include <unity.h>
3
4
#include "
AMS_interface_test.h
"
5
#include "
dashboard_interface_test.h
"
6
#include "
Watchdog_interface_test.h
"
7
#include "
Coulomb_Counting_Tests.h
"
8
#include "
MCU_rev15_defs.h
"
9
10
void
tearDown
(
void
)
11
{
12
13
}
14
15
int
runUnityTests
(
void
)
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
);
31
RUN_TEST(
test_current_shunt_CAN_message
);
32
RUN_TEST(
test_bms_voltages_CAN_message
);
33
RUN_TEST(
test_em_measurements_CAN_message
);
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
}
42
43
void
on_can_receive
() {}
// do nothing
44
45
void
setup
() {
46
47
delay(500);
48
49
Serial.begin(115200);
50
51
runUnityTests
();
52
53
}
54
55
void
loop
() {
56
57
}
AMS_interface_test.h
test_em_measurements_CAN_message
void test_em_measurements_CAN_message()
Definition:
AMS_interface_test.h:90
test_current_shunt_CAN_message
void test_current_shunt_CAN_message()
Definition:
AMS_interface_test.h:29
test_bms_voltages_CAN_message
void test_bms_voltages_CAN_message()
Definition:
AMS_interface_test.h:52
test_AMS_heartbeat
void test_AMS_heartbeat()
Definition:
AMS_interface_test.h:117
Coulomb_Counting_Tests.h
test_initialize_charge
void test_initialize_charge()
Definition:
Coulomb_Counting_Tests.h:10
test_calculate_SoC_em
void test_calculate_SoC_em()
Definition:
Coulomb_Counting_Tests.h:55
test_calculate_SoC_acu
void test_calculate_SoC_acu()
Definition:
Coulomb_Counting_Tests.h:144
MCU_rev15_defs.h
Watchdog_interface_test.h
dashboard_interface_test.h
on_can_receive
void on_can_receive()
Definition:
test_interfaces.cpp:43
setup
void setup()
Definition:
test_interfaces.cpp:45
tearDown
void tearDown(void)
Definition:
test_interfaces.cpp:10
runUnityTests
int runUnityTests(void)
Definition:
test_interfaces.cpp:15
loop
void loop()
Definition:
test_interfaces.cpp:55
Generated by
1.9.5