Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { Publish(key string, val interface{}) SocEstimator() *Estimator ActivePhases() int64 Voltage() float64 }
Adapter provides the required methods for interacting with the loadpoint
type Estimator ¶
type Estimator struct {
// contains filtered or unexported fields
}
Estimator provides vehicle soc and charge duration Vehicle SoC can be estimated to provide more granularity
func NewEstimator ¶
NewEstimator creates new estimator
func (*Estimator) CacheReset ¶
func (*Estimator) RemainingChargeDuration ¶
RemainingChargeDuration returns the remaining duration estimate based on SoC, target and charge power
func (*Estimator) RemainingChargeEnergy ¶
RemainingChargeEnergy returns the remaining charge energy in kWh
type Timer ¶
Timer is the target charging handler
func (*Timer) StartRequired ¶
StartRequired calculates remaining charge duration and returns true if charge start is required to achieve target soc in time
Click to show internal directories.
Click to hide internal directories.