Documentation ¶
Index ¶
Constants ¶
View Source
const ChargeEfficiency = 0.9 // assume charge 90% efficiency
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 ¶
func NewEstimator(log *util.Logger, charger api.Charger, vehicle api.Vehicle, estimate bool) *Estimator
NewEstimator creates new estimator
func (*Estimator) RemainingChargeDuration ¶
RemainingChargeDuration returns the estimated remaining duration
func (*Estimator) RemainingChargeEnergy ¶
RemainingChargeEnergy returns the remaining charge energy in kWh
Click to show internal directories.
Click to hide internal directories.