Ultima versão da banca de ensaios BMS Fev2017

Dependencies:   CANnucleo LTC68041 mbed

Fork of BMS_4 by Gerardo Antonio

Revision:
42:ca364a2bf162
Parent:
41:0b05e0109f2e
Child:
43:cf574cc8b74f
--- a/main.cpp	Wed Nov 09 21:44:31 2016 +0000
+++ b/main.cpp	Thu Nov 10 11:15:35 2016 +0000
@@ -338,7 +338,7 @@
                     case 31: //ntc 32
                         MUXB_3=1; MUXB_2=1; MUXB_1=1; MUXB_0=1; break;
                 }
-                wait_ms(10); //tempo para a tensao á saida do mux estabilisar
+                wait_ms(100); //tempo para a tensao á saida do mux estabilisar
             if(i<16){  // Converts and read the analog input value (value from 0.0 to 1.0)
              temp_codes[i] = MUXA_Read.read()*3300;
             }else{
@@ -437,7 +437,7 @@
             if(cells_left>0){
             
             txMsg.clear();
-            txMsg.id = 11;     //BMS1=>ID:11; BMS2=>ID:12; BMS3=>ID:13.
+            txMsg.id = 13;     //BMS1=>ID:11; BMS2=>ID:12; BMS3=>ID:13.
             txMsg.len = 5;
             data.f[0] = cell_codes[0][cells_left-1]*0.0001;
             txMsg.data[0] = data.bytes[0];
@@ -459,7 +459,7 @@
        if(temps_left>0){
        
             txMsg.clear();
-            txMsg.id = 21;     //BMS1=>ID:11; BMS2=>ID:12; BMS3=>ID:13.
+            txMsg.id = 23;     //BMS1=>ID:11; BMS2=>ID:12; BMS3=>ID:13.
             txMsg.len = 5;
                  
             data.f[0] = temp_codes[temps_left-1];