Cell voltages fork (SoC)
Dependencies: CUER_CAN CUER_DS1820 LTC2943 LTC6804 mbed PowerControl
Diff: main.cpp
- Revision:
- 65:95f21910cf9d
- Parent:
- 64:2878a6b3eea8
- Child:
- 66:c884fba9eaea
--- a/main.cpp Mon Sep 04 00:48:19 2017 +0000 +++ b/main.cpp Tue Sep 12 01:29:12 2017 +0000 @@ -507,6 +507,9 @@ if(measurements.max_cell_voltage.voltage > MAX_CELL_VOLTAGE) { status = status | CELL_OVER_VOLTAGE; } + if(measurements.max_cell_voltage.voltage > MAX_CELL_CHARGE_VOLTAGE) { + status = status | CELL_OVER_CHARGE_VOLTAGE; + } if (measurements.min_cell_voltage.voltage < MIN_CELL_VOLTAGE) { status = status | CELL_UNDER_VOLTAGE; //printf(" \r\n \r\n \r\n Min cell in check MEASUREMENTS is voltage is %d \r\n", measurements.min_cell_voltage.voltage);