PowertrainControl Class Reference#

Demo: demo::PowertrainControl Class Reference
Demo
demo::PowertrainControl Class Reference

Represents the Powertrain Control software component. More...

#include <powertrain_control.hpp>

Public Member Functions

 PowertrainControl ()
 Constructs the PowertrainControl object.
 
void optimizePowerDistribution ()
 Monitors the battery charge level and optimizes power distribution.
 
void adjustTorqueDelivery (const std::string &drivingConditions, const std::string &driverInput)
 Adjusts torque delivery based on driving conditions and driver input.
 
void captureEnergyDuringDeceleration ()
 Captures and stores energy during deceleration using regenerative braking.
 
void setPowertrainMode (const std::string &mode)
 Sets the powertrain mode to the specified mode.
 
void displayInformation (const std::string &information)
 Communicates with the instrument cluster to display relevant information.
 

Detailed Description

Represents the Powertrain Control software component.

Implementation Class: PowertrainControl SW-CLS-PWRTRAIN ../../../../_images/arrow-right-circle.svg
implements: SW-COMP-003

Member Function Documentation

◆ adjustTorqueDelivery()

void demo::PowertrainControl::adjustTorqueDelivery ( const std::string &  drivingConditions,
const std::string &  driverInput 
)
inline

Adjusts torque delivery based on driving conditions and driver input.

Parameters
drivingConditionsThe current driving conditions.
driverInputThe input from the driver.

◆ displayInformation()

void demo::PowertrainControl::displayInformation ( const std::string &  information)
inline

Communicates with the instrument cluster to display relevant information.

Parameters
informationThe information to display.

◆ setPowertrainMode()

void demo::PowertrainControl::setPowertrainMode ( const std::string &  mode)
inline

Sets the powertrain mode to the specified mode.

Parameters
modeThe powertrain mode to set.

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