![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
all bms comunicating with nucleo board and balancing
Dependencies: CANnucleo LTC68041 mbed
Fork of BMS_2 by
Diff: main.cpp
- Revision:
- 23:bde0179eee92
- Parent:
- 21:988413f53fbe
- Child:
- 24:f47f1fd6ce01
--- a/main.cpp Sat Oct 22 16:37:36 2016 +0000 +++ b/main.cpp Sat Oct 22 17:41:59 2016 +0000 @@ -303,7 +303,7 @@ to_send=0; txMsg.clear(); - txMsg.id = 10; + txMsg.id = 11; txMsg.len = 5; data.f[0] = cell_codes[0][cells_left-1]*0.0001; txMsg.data[0] = data.bytes[0]; @@ -312,7 +312,7 @@ txMsg.data[3] = data.bytes[3]; txMsg.data[4] = cells_left; cells_left--; - if(!(can.write(txMsg))) { + if(!(can.write(txMsg))) { //se nao conseguiu transmitir continua a tentar transmitir a tensão dessa celula pec_error(); cells_left++; //to_send=1;