BatteryControl Class Reference#

Demo: demo::BatteryControl Class Reference
Demo
demo::BatteryControl Class Reference

Battery Control software component. More...

#include <battery_control.hpp>

Public Member Functions

void monitorBattery (BatteryStateOfCharge stateOfCharge, float voltage, float temperature)
 Monitors the battery's state of charge, voltage, and temperature.
 
void optimizeBatteryUsage (const std::string &usagePattern)
 Optimizes charging and discharging strategies to extend battery life and maximize performance.
 
void protectBattery (float chargingRate, float dischargingRate)
 Protects the battery from overcharging, over-discharging, and overheating conditions.
 
BatteryHealth provideBatteryInformation ()
 Provides information about the battery's health, remaining capacity, and estimated range to the driver.
 
void integrateWithPowertrainControl (float powerDemand)
 Integrates with the vehicle's powertrain control system for efficient power distribution and usage.
 

Detailed Description

Battery Control software component.

Implementation Class: BatteryControl SW-CLS-BATTERY ../../../../_images/arrow-right-circle.svg
status: implemented
implements: SW-COMP-012

The Battery Control software component controls, monitors, and optimizes battery usage. It is responsible for monitoring the battery's state of charge, voltage, and temperature, optimizing charging and discharging strategies to extend battery life and maximize performance, protecting the battery from overcharging, over-discharging, and overheating conditions, providing information about the battery's health, remaining capacity, and estimated range to the driver, and integrating with the vehicle's powertrain control system to ensure efficient power distribution and usage.

Member Function Documentation

◆ integrateWithPowertrainControl()

void demo::BatteryControl::integrateWithPowertrainControl ( float  powerDemand)

Integrates with the vehicle's powertrain control system for efficient power distribution and usage.

Parameters
powerDemandThe current power demand of the vehicle.

◆ monitorBattery()

void demo::BatteryControl::monitorBattery ( BatteryStateOfCharge  stateOfCharge,
float  voltage,
float  temperature 
)

Monitors the battery's state of charge, voltage, and temperature.

Parameters
stateOfChargeThe current state of charge of the battery.
voltageThe current voltage of the battery.
temperatureThe current temperature of the battery.

◆ optimizeBatteryUsage()

void demo::BatteryControl::optimizeBatteryUsage ( const std::string &  usagePattern)

Optimizes charging and discharging strategies to extend battery life and maximize performance.

Parameters
usagePatternThe desired usage pattern for the battery.

◆ protectBattery()

void demo::BatteryControl::protectBattery ( float  chargingRate,
float  dischargingRate 
)

Protects the battery from overcharging, over-discharging, and overheating conditions.

Parameters
chargingRateThe current charging rate of the battery.
dischargingRateThe current discharging rate of the battery.

◆ provideBatteryInformation()

BatteryHealth demo::BatteryControl::provideBatteryInformation ( )

Provides information about the battery's health, remaining capacity, and estimated range to the driver.

Returns
The battery's health status.

The documentation for this class was generated from the following file: