![](/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:
- 37:1776d45825ef
- Parent:
- 36:e70020bee11f
- Child:
- 38:48afc177a319
diff -r e70020bee11f -r 1776d45825ef main.cpp --- a/main.cpp Wed Nov 09 14:07:19 2016 +0000 +++ b/main.cpp Wed Nov 09 14:20:39 2016 +0000 @@ -420,7 +420,7 @@ if(to_send) { to_send=0; //-----------------1º send cell voltages - /* txMsg.clear(); + txMsg.clear(); txMsg.id = 11; //BMS1=>ID:11; BMS2=>ID:12; BMS3=>ID:13. txMsg.len = 5; data.f[0] = cell_codes[0][cells_left-1]*0.0001; @@ -435,8 +435,9 @@ cells_left++; //to_send=1; } -*/ - //-----------------2º send cell temperatures + + //-----------------2º send cell temperatures + // wait_ms(200); falha se houver aqui um delay deste tamanho txMsg.clear(); txMsg.id = 21; //BMS1=>ID:11; BMS2=>ID:12; BMS3=>ID:13. txMsg.len = 5;