C++ implementation of an Extended Kalman Filter for battery State‑of‑Charge estimation.
- CMake ≥ 3.16
- C++17 compiler
# from repo root
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build -j
./build/ekf_soc_app- All data in
signals.csvwas generated from a MATLAB/Simulink project described here: https://www.mathworks.com/help/simscape-battery/ref/socestimatorkalmanfilter.html - The data in
signals_with_est.csvis the logged output estimate from runningmain.cpp - Run
validate_data.pyto see a graph comparing the SOC estimate and the true SOC.

