fix scale error

This commit is contained in:
Michael Oborne 2012-01-21 06:33:18 +08:00
parent 1bebb9452b
commit 95f58b0432
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ static void read_battery(void)
battery_voltage1 = BATTERY_VOLTAGE(analogRead(BATTERY_PIN_1)) * .1 + battery_voltage1 * .9;
if(g.battery_monitoring == 4) {
current_amps1 = CURRENT_AMPS(analogRead(CURRENT_PIN_1)) * .1 + current_amps1 * .9; //reads power sensor current pin
current_total1 += current_amps1 * 0.0002778; // .0002778 is 1/3600 (conversion to hours)
current_total1 += current_amps1 * 0.02778; // called at 100ms on average, .0002778 is 1/3600 (conversion to hours)
}
#if BATTERY_EVENT == 1