Class SimpleDevicePowerSink

Inheritance Relationships

Base Type

Class Documentation

class SimpleDevicePowerSink : public rmf_battery::DevicePowerSink

Public Functions

SimpleDevicePowerSink(const BatterySystem &battery_system, const PowerSystem &power_system)

Constructor

Parameters:
const BatterySystem &battery_system() const

Get a constant reference to the battery system.

const PowerSystem &power_system() const

Get a constant reference to the power system.

virtual double compute_change_in_charge(const double run_time) const final

Compute change in state-of-charge of the battery due to an onboard device over a time period.

Parameters:

run_time[in] The duration in seconds over which the power system drains charge from the battery

Returns:

The charge depleted as a fraction of the total battery capacity