Displaying 4 results from an estimated 4 matches for "vbatt".
Did you mean:
batt
2005 Oct 05
1
serial/USB-over-HID layer for fentonups
Do you know some piece of code I could look at to see learn more about
this ?
2005 Oct 05
1
serial/USB-over-HID layer for fentonups
Do you know some piece of code I could look at to see learn more about
this ?
2013 May 11
1
Best Ferrups (bestfcom patch)
...I propose the following patch to fix the battery.charge (% battery full) reading.
--- bestfcom.c.orig 2012-07-31 12:38:59.000000000 -0500
+++ bestfcom.c 2013-05-11 09:39:52.155279710 -0500
@@ -332,7 +332,7 @@
/* Compute battery percent left based on battery voltages. */
battpercent = ((vbatt - fc.emptyvolts)
- / (fc.fullvolts - fc.emptyvolts) * 100.0);
+ / (fc.idealbvolts - fc.emptyvolts) * 100.0);
if (battpercent < 0.0)
battpercent = 0.0;
else if (battpercent > 100.0)
The patch is based on version 2.6.5
Thanks for your consideration. I know this is a...
2011 Oct 03
0
patch: Fix [-Wunused-but-set-variable]
.../
}
Index: b/drivers/bestfcom.c
===================================================================
--- a/drivers/bestfcom.c 2011-05-31 13:36:49.000000000 +0300
+++ b/drivers/bestfcom.c 2011-08-17 00:23:22.000000000 +0300
@@ -260,13 +260,10 @@ void upsdrv_updateinfo(void)
double ampsout=0.0, vbatt=0.0, battpercent=0.0, loadpercent=0.0,
upstemp=0.0, acfreq=0.0;
- char date[9], time[9], tmp[32];
+ char tmp[32];
upsdebugx(3, "f response: %d %s", (int)strlen(fstring), fstring);
- date[0]='\0';
- time[0]='\0';
-
/* Inverter status. 0=off 1=on */
i...