Skip to content

Commit

Permalink
Merge branch 'hoylabs:development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoopy-HSS authored Nov 27, 2024
2 parents bc86bf2 + 6aea4ad commit 5e4318d
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 89 deletions.
7 changes: 3 additions & 4 deletions include/PowerLimiter.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class PowerLimiterClass {
InverterCmdPending,
ConfigReload,
InverterStatsPending,
FullSolarPassthrough,
UnconditionalSolarPassthrough,
Stable,
};
Expand Down Expand Up @@ -82,12 +81,12 @@ class PowerLimiterClass {
void reloadConfig();
std::pair<float, char const*> getInverterDcVoltage();
float getBatteryVoltage(bool log = false);
uint16_t solarDcToInverterAc(uint16_t dcPower);
uint16_t dcPowerBusToInverterAc(uint16_t dcPower);
void fullSolarPassthrough(PowerLimiterClass::Status reason);
int16_t calcHouseholdConsumption();
int16_t calcConsumption();
using inverter_filter_t = std::function<bool(PowerLimiterInverter const&)>;
uint16_t updateInverterLimits(uint16_t powerRequested, inverter_filter_t filter, std::string const& filterExpression);
uint16_t calcBatteryAllowance(uint16_t powerRequested);
uint16_t calcPowerBusUsage(uint16_t powerRequested);
bool updateInverters();
uint16_t getSolarPassthroughPower();
std::optional<uint16_t> getBatteryDischargeLimit();
Expand Down
Loading

0 comments on commit 5e4318d

Please sign in to comment.