Преглед изворни кода

pcb resistor is 0

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui пре 5 година
родитељ
комит
b82d682fda
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Application/app/iv_measure.c

+ 2 - 2
Application/app/iv_measure.c

@@ -5,7 +5,7 @@
 #include "bsp/clock.h"
 #include "bsp/gpio.h"
 #include "bsp/temp_lookup_tab.h"
-/* measure the current & voltage for battery pack by using
+/* measure the temp & current & voltage for battery pack by using
  * ms5238 & cs1180(only used when bms is in small current loading)
 */
 
@@ -19,7 +19,7 @@ static float vim0_10x = 0.0f;
 static float vim0_50x = 0.0f;
 static float vim0_now;
 #define r_resistor 1.0f // 1ºÁÅ·
-#define r_pcb_resistor 2.0f // pcb resistor
+#define r_pcb_resistor 0.0f // pcb resistor
 static const float r_sense = r_resistor + r_pcb_resistor;
 static const float v_ref = 3300.0f; //adc ref = 3.3v
 static const float max_adc = 65535.0f;