From aeef870dbed6488483dc8dadfdf57858a9d84b7c Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Thu, 17 Nov 2022 20:50:46 -0600 Subject: Initial Commit --- battery.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 battery.cpp (limited to 'battery.cpp') diff --git a/battery.cpp b/battery.cpp new file mode 100644 index 0000000..e91b05f --- /dev/null +++ b/battery.cpp @@ -0,0 +1,14 @@ +#include "battery.h" + +Battery::Battery() : + activeBattery(batteries[0]), + seriesCells(0), + parallelCells(0) +{ + +} + +void Battery::changeBatteryChemistry(int name) +{ + activeBattery= batteries[name]; +} -- cgit v1.2.3