DC bus integrated into PowerPort class

Reason: Previous idea with storing the voltage only once and not in every port
doesn't work well for droop settings, e.g. the DC/DC output port doesn't know
the actual battery current, which should be used to calculate the droop caued
by wire resistance.
This commit is contained in:
Martin Jaeger
2019-10-22 18:23:19 +02:00
parent a89ac7ff4b
commit f879dc9c5d
22 changed files with 191 additions and 234 deletions
-2
View File
@@ -81,8 +81,6 @@ public:
uint16_t switch_state; ///< Current state of load output switch
uint16_t usb_state; ///< Current state of USB output
DcBus *bus; ///< Pointer to internal DC bus where the load output
///< current is coming from
PowerPort *port; ///< Pointer to DC bus containting actual voltage and current
///< measurement of (external) load output terminal