moved battery voltage setting so simulated value won't be used for threshold

pull/73/head
alanbjohnston 5 years ago committed by GitHub
parent be535b308a
commit 28d2b86386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1002,8 +1002,9 @@ if (firstTime != ON)
}
}
// printf("\n");
// printf("\n");
batteryVoltage = voltage[map[BAT]];
FILE *cpuTempSensor = fopen("/sys/class/thermal/thermal_zone0/temp", "r");
if (cpuTempSensor) {
@ -1114,7 +1115,7 @@ if (firstTime != ON)
negZv = (int)(voltage[map[MINUS_Z]] * 100);
batt_c_v = (int)(voltage[map[BAT]] * 100);
batt_c_v = (int)(batt * 100);
// batt_c_v = (int)(batt * 100);
battCurr = (int)(current[map[BAT]] + 0.5) + 2048;
PSUVoltage = (int)(voltage[map[BUS]] * 100);
@ -1124,8 +1125,6 @@ if (firstTime != ON)
printf("PosZi: %d \n", posZi);
batteryVoltage = voltage[map[BAT]];
// if (payload == ON)
// STEMBoardFailure = 0;

Loading…
Cancel
Save

Powered by TurnKey Linux.