summaryrefslogtreecommitdiff
path: root/battery.cpp
diff options
context:
space:
mode:
authorJoshua Drake <joshua.ellis.drake@gmail.com>2022-11-17 20:50:46 -0600
committerJoshua Drake <joshua.ellis.drake@gmail.com>2022-11-17 20:50:46 -0600
commitaeef870dbed6488483dc8dadfdf57858a9d84b7c (patch)
tree3974d2eaf2e50c8108d31c48e21d07f301eb6b73 /battery.cpp
Initial Commit
Diffstat (limited to 'battery.cpp')
-rw-r--r--battery.cpp14
1 files changed, 14 insertions, 0 deletions
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];
+}