@@ -28,7 +28,7 @@ bool checkPrerunBattery(void){
2828 return false;
2929 }
3030 if (data -> bms -> cellMaxVoltage > MAX_CELL_VOLTAGE || data -> bms -> cellMinVoltage < MIN_CELL_VOLTAGE ){
31- printf ("Cell Voltage Error: %i , %i \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
31+ printf ("Cell Voltage Error: %f , %f \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
3232 return false;
3333 }
3434 if (data -> bms -> packVoltage > MAX_PACK_VOLTAGE || data -> bms -> packVoltage < MIN_PACK_VOLTAGE_PRERUN ){
@@ -53,7 +53,7 @@ bool checkRunBattery(void){
5353 return false;
5454 }
5555 if (data -> bms -> cellMaxVoltage > MAX_CELL_VOLTAGE || data -> bms -> cellMinVoltage < MIN_CELL_VOLTAGE ){
56- printf ("Cell Voltage Error: %i , %i \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
56+ printf ("Cell Voltage Error: %f , %f \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
5757 return false;
5858 }
5959 if (data -> bms -> packVoltage > MAX_PACK_VOLTAGE || data -> bms -> packVoltage < MIN_PACK_VOLTAGE_RUN ){
@@ -78,7 +78,7 @@ bool checkBrakingBattery(void){
7878 return false;
7979 }
8080 if (data -> bms -> cellMaxVoltage > MAX_CELL_VOLTAGE || data -> bms -> cellMinVoltage < MIN_CELL_VOLTAGE ){
81- printf ("Cell Voltage Error: %i , %i \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
81+ printf ("Cell Voltage Error: %f , %f \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
8282 return false;
8383 }
8484 if (data -> bms -> packVoltage > MAX_PACK_VOLTAGE || data -> bms -> packVoltage < MIN_PACK_VOLTAGE_RUN ){
@@ -103,7 +103,7 @@ bool checkStoppedBattery(void){
103103 return false;
104104 }
105105 if (data -> bms -> cellMaxVoltage > MAX_CELL_VOLTAGE || data -> bms -> cellMinVoltage < MIN_CELL_VOLTAGE ){
106- printf ("Cell Voltage Error: %i , %i \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
106+ printf ("Cell Voltage Error: %f , %f \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
107107 return false;
108108 }
109109 if (data -> bms -> packVoltage > MAX_PACK_VOLTAGE || data -> bms -> packVoltage < MIN_PACK_VOLTAGE_RUN ){
@@ -128,7 +128,7 @@ bool checkCrawlBattery(void){
128128 return false;
129129 }
130130 if (data -> bms -> cellMaxVoltage > MAX_CELL_VOLTAGE || data -> bms -> cellMinVoltage < MIN_CELL_VOLTAGE ){
131- printf ("Cell Voltage Error: %i , %i \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
131+ printf ("Cell Voltage Error: %f , %f \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
132132 return false;
133133 }
134134 if (data -> bms -> packVoltage > MAX_PACK_VOLTAGE || data -> bms -> packVoltage < MIN_PACK_VOLTAGE_POSTRUN ){
@@ -153,7 +153,7 @@ bool checkPostrunBattery(void){
153153 return false;
154154 }
155155 if (data -> bms -> cellMaxVoltage > MAX_CELL_VOLTAGE || data -> bms -> cellMinVoltage < MIN_CELL_VOLTAGE ){
156- printf ("Cell Voltage Error: %i , %i \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
156+ printf ("Cell Voltage Error: %f , %f \n" , data -> bms -> cellMinVoltage , data -> bms -> cellMaxVoltage );
157157 return false;
158158 }
159159 if (data -> bms -> packVoltage > MAX_PACK_VOLTAGE || data -> bms -> packVoltage < MIN_PACK_VOLTAGE_POSTRUN ){
0 commit comments