File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ extern CAN* canBus;
16
16
//Global pointer to DigitalOut objects for BMS_FAULT and CHARGER_CONTROL pins
17
17
//
18
18
//This allows for all files to access BMS_FAULT and CHARGER_CONTROL pins
19
- extern DigitalOut * bms_flt ;
20
- extern DigitalOut * charger_ctrl ;
19
+ extern DigitalOut * bmsFault ;
20
+ extern DigitalOut * chargerControl ;
21
21
22
22
//
23
23
// BMS Master Configuration
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ class BMSThread {
43
43
44
44
void throwBmsFault () {
45
45
m_discharging = false ;
46
- bms_flt ->write (0 );
47
- charger_ctrl ->write (1 );
46
+ bmsFault ->write (0 );
47
+ chargerControl ->write (1 );
48
48
49
49
}
50
50
void threadWorker () {
Original file line number Diff line number Diff line change 32
32
33
33
Serial* serial;
34
34
CAN* canBus;
35
- DigitalOut* bms_flt ;
36
- DigitalOut* charger_ctrl ;
35
+ DigitalOut* bmsFault ;
36
+ DigitalOut* chargerControl ;
37
37
38
38
void initIO ();
39
39
@@ -77,9 +77,9 @@ void initIO() {
77
77
78
78
canBus = new CAN (BMS_PIN_CAN_RX, BMS_PIN_CAN_TX, BMS_CAN_FREQUENCY);
79
79
80
- bms_flt = new DigitalOut (BMS_PIN_BMS_FLT);
80
+ bmsFault = new DigitalOut (BMS_PIN_BMS_FLT);
81
81
82
- charger_ctrl = new DigitalOut (BMS_PIN_CHARGER_CONTROL);
82
+ chargerControl = new DigitalOut (BMS_PIN_CHARGER_CONTROL);
83
83
84
84
// Set modes for IO
85
85
/*
@@ -90,11 +90,11 @@ void initIO() {
90
90
*/
91
91
92
92
// Reset BMS fault line
93
- bms_flt ->write (1 );
94
- bms_flt ->write (0 );
93
+ bmsFault ->write (1 );
94
+ bmsFault ->write (0 );
95
95
96
96
// Enable charging
97
- charger_ctrl ->write (0 );
97
+ chargerControl ->write (0 );
98
98
99
99
// Set modes for SPI
100
100
/*
You can’t perform that action at this time.
0 commit comments