4.1.1.4. SOE: Energy Counting
4.1.1.4.1. Module Files
4.1.1.4.1.1. Driver
src/app/application/algorithm/state_estimation/soe/counting/soe_counting.c
4.1.1.4.1.2. Configuration
src/app/application/algorithm/state_estimation/soe/counting/soe_counting_cfg.h
4.1.1.4.1.3. Unit Test
tests/unit/app/application/algorithm/state_estimation/soe/counting/test_soe_counting.c
4.1.1.4.2. Detailed Description
4.1.1.4.3. SE_CalculateStateOfCharge
Charge and Discharge energy throughput can be calculated in two ways.
If external energy counting value is available:
1. Calculate the energy difference between the latest and the previous energy counting value. 1. Check current flow direction to evaluate if charge/discharge is ongoing. 1. Accumulate energy throughput value in either charge or discharge direction in SOE database entry. 1. Save time step 1. Save energy counting value
If external energy counting value is NOT available:
1. Manually calculate energy throughput since last call. 1. Check current flow direction to evaluate if charge/discharge is ongoing. 1. Accumulate energy throughput value in either charge or discharge direction in SOE database entry. 1. Save time step
This section of the documentation is not yet complete.