if (current_battery_voltage < BATTERY_VOLTAGE_80_PERCENT && current_battery_voltage > 0)
{
// ²¹³¥¹«Ê½£º²¹³¥ºóµçÁ÷ = Ä¿±êµçÁ÷ ¡Á (Âúµçѹ / µ±Ç°µçѹ)
- compensated_current = target_current * (FULL_BATTERY_VOLTAGE / current_battery_voltage);
+ compensated_current = target_current * BATTERY_VOLTAGE_80_PERCENT / current_battery_voltage;
// ÏÞÖÆ×î´ó²¹³¥µçÁ÷£¨¿É¸ù¾Ýʵ¼ÊÇé¿öµ÷Õû£©
if (compensated_current > ELECTRICITY_PP)
#define FULL_BATTERY_VOLTAGE 2948 //Âúµçµçѹ£º20.77v µç·ÉϲâµÃµçѹԼΪ:2.948V
#define EMPTY_BATTERY_VOLTAGE 2357 //¼ì²âµçѹ (16.5V/7)*1000
#define BATTERY_RISE_THRESHOLD 3 //¶ÔÓ¦µç³Øµçѹ500mv,ÐèÒª¼ì²é¼ÆË㣬qibin
+
+//µç³ØµçѹµÍÓÚ18V£¬¶ÔÄ¿±êŤ¾ØµçÁ÷½øÐв¹³¥£¬18V x ·Öѹ 33/233 = 2.549V
+
// µç³ØµçѹµÍÓÚÕâ¸öÖµ½øÐеçÁ÷²¹³¥
-#define BATTERY_VOLTAGE_80_PERCENT 2459
+#define BATTERY_VOLTAGE_80_PERCENT 2549
#define BATTERY_VOLTAGE_FUNCIONT(Vol) Vol*21000/2948