Skip to content

Commit

Permalink
drivers/nutdrv_qx.c: dial back down the batt.volt.high guesstimation …
Browse files Browse the repository at this point in the history
…to 130/120 of the nominal (back from experimental 150/120) [networkupstools#1652]

Signed-off-by: Jim Klimov <[email protected]>
Signed-off-by: Alex W Baulé <[email protected]>
  • Loading branch information
jimklimov authored and alexwbaule committed Oct 4, 2023
1 parent 6e5f27d commit 751f881
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions drivers/nutdrv_qx.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,14 @@ static void qx_initbattery(void)
/* Per https://www.csb-battery.com.tw/english/01_product/02_detail.php?fid=17&pid=113
* a nominally 12V battery can have "float charging voltage"
* at 13.5-13.8V and an "equalization charging voltage" (e.g.
* to desulphurize) at 14-15V:
* to desulphurize) at 14-15V. Note that per nut-names.txt,
* the "battery.voltage.high" is the practical 100% charge
* value (so equal or a bit less than actual battery.voltage
* reported by the device, when the situation is healthy);
* it is not the voltage that the battery CAN reach on the
* brink of boiling out:
*/
batt.volt.high = 150 * batt.volt.nom / 120;
batt.volt.high = 130 * batt.volt.nom / 120;

/* Publish these data too */
dstate_setinfo("battery.voltage.low", "%.2f", batt.volt.low);
Expand Down

0 comments on commit 751f881

Please sign in to comment.