9void full_front_test() {
10 static elapsedMillis timeElapsedHigh;
11 static elapsedMillis timeElapsedMidHigh;
12 static elapsedMillis timeElapsedMidLow;
13 static elapsedMillis timeElapsedLow;
16 if (timeElapsedHigh >= 20) {
19 static uint32_t speed = 300;
20 static bool direction =
true;
25 speed += (direction ? -1 : 1) * random(10);
26 Log(ID,
"Current Motor Speed:", speed);
28 if (timeElapsedMidHigh >= 200) {
29 timeElapsedMidHigh = 0;
30 Log(ID,
"Current State", 0, 500);
32 if (timeElapsedMidLow >= 500) {
33 timeElapsedMidLow = 0;
34 static bool on = random(100) > 50;
35 Log(ID,
"Start Light", on);
37 if (timeElapsedLow >= 800) {
41 Log(ID,
"MC0 DC BUS Voltage:", random(200));
42 Log(ID,
"MC1 DC BUS Voltage:", random(200));
43 Log(ID,
"MC0 DC BUS Current:", random(200));
44 Log(ID,
"MC1 DC BUS Current:", random(200));
45 Log(ID,
"MC0 Board Temp:", random(200));
46 Log(ID,
"MC1 Board Temp:", random(200));
47 Log(ID,
"MC0 Motor Temp:", random(200));
48 Log(ID,
"MC1 Motor Temp:", random(200));
49 Log(ID,
"MC Current Power:", random(200));
52 Log(ID,
"BMS State Of Charge:", random(100));
53 Log(ID,
"BMS Immediate Voltage:", random(200));
54 Log(ID,
"BMS Pack Average Current:", random(200));
55 Log(ID,
"BMS Pack Highest Temp:", random(200));
56 Log(ID,
"BMS Pack Lowest Temp:", random(200));
57 Log(ID,
"BMS Discharge current limit:", random(200));
58 Log(ID,
"BMS Charge current limit:", random(200));
61 Log(ID,
"Fault State", random(100) > 50);