Displaying 3 results from an estimated 3 matches for "battery_voltage_sanity_check".
2014 Aug 11
1
Cyberpower Value1200E might not need 0.667 battery scaling
...; +static int might_need_battery_scale = 0;
> +static int battery_scale_checked = 0;
> +
> +/*! If the ratio of the battery voltage to the nominal battery voltage exceeds
> + * this factor, we assume that the battery voltage needs to be scaled by 2/3.
> + */
> +static const double battery_voltage_sanity_check = 1.4;
>
> static void *cps_battery_scale(USBDevice_t *device)
> {
> - battery_scale = 0.667;
> + might_need_battery_scale = 1;
> return NULL;
> }
>
> /* USB IDs device table */
> static usb_device_id_t cps_usb_device_table[] = {
> - /* 900AVR/BC9...
2014 Aug 09
0
Cyberpower Value1200E might not need 0.667 battery scaling
On Aug 8, 2014, at 9:15 AM, Charles Lepple <clepple at gmail.com> wrote:
> On Aug 7, 2014, at 10:52 PM, Charles Lepple <clepple at gmail.com> wrote:
>
>> On Aug 7, 2014, at 10:18 PM, Matthew Stapleton <matthew4196 at gmail.com> wrote:
>>
>>> I just got a Cyberpower SOHO Value 1200 ELCD UPS and even with nut 2.7.2, it appears to report battery voltage
2014 Aug 08
2
Cyberpower Value1200E might not need 0.667 battery scaling
On Aug 7, 2014, at 10:52 PM, Charles Lepple <clepple at gmail.com> wrote:
> On Aug 7, 2014, at 10:18 PM, Matthew Stapleton <matthew4196 at gmail.com> wrote:
>
>> I just got a Cyberpower SOHO Value 1200 ELCD UPS and even with nut 2.7.2, it appears to report battery voltage too low due to the battery scaling function (In drivers/cps-hid.c). Even though the ups has usb id: