ClimateControl Class Reference#
Demo |
Climate Control software component. More...
#include <climate_control.hpp>
Public Member Functions | |
void | receiveTemperatureInput (const std::vector< TemperatureSensor > &sensors) |
Receives input from temperature sensors located inside the cabin. | |
void | controlHVACSystem (int fanSpeed, bool compressorState) |
Controls the operation of the HVAC system. | |
void | automaticTemperatureControl (float desiredTemperature, float outsideTemperature) |
Provides automatic temperature control based on user-defined settings. | |
void | adjustAirDistribution (int driverVentLevel, int passengerVentLevel) |
Adjusts air distribution to different zones within the cabin. | |
void | optimizeTemperatureSettings (const OccupancyData &occupancyData) |
Integrates with the vehicle's occupancy sensors to optimize temperature settings based on passenger presence. | |
Detailed Description
Climate Control software component.
The Climate Control software component regulates temperature and air distribution to ensure optimal cabin comfort. It receives input from temperature sensors, controls the operation of the HVAC system, and provides automatic temperature control based on user-defined settings. It also adjusts air distribution to different zones within the cabin, such as driver and passenger areas, and integrates with the vehicle's occupancy sensors to optimize temperature settings based on passenger presence.
Member Function Documentation
◆ adjustAirDistribution()
void demo::ClimateControl::adjustAirDistribution | ( | int | driverVentLevel, |
int | passengerVentLevel | ||
) |
Adjusts air distribution to different zones within the cabin.
- Parameters
-
driverVentLevel The level of air distribution for the driver zone. passengerVentLevel The level of air distribution for the passenger zone.
This function controls the air distribution vents inside the cabin to direct the airflow to different zones, such as the driver and passenger areas, based on user preferences and the desired temperature settings.
◆ automaticTemperatureControl()
void demo::ClimateControl::automaticTemperatureControl | ( | float | desiredTemperature, |
float | outsideTemperature | ||
) |
Provides automatic temperature control based on user-defined settings.
- Parameters
-
desiredTemperature The desired temperature set by the user. outsideTemperature The current outside temperature.
This function uses the input from the temperature sensors and the user-defined settings to automatically adjust the temperature inside the cabin. It takes into account factors such as desired temperature, outside temperature, and passenger preferences to maintain a comfortable environment.
◆ controlHVACSystem()
void demo::ClimateControl::controlHVACSystem | ( | int | fanSpeed, |
bool | compressorState | ||
) |
Controls the operation of the HVAC system.
- Parameters
-
fanSpeed The desired fan speed. compressorState The state of the compressor (ON/OFF).
This function communicates with the HVAC system to control its operation, such as adjusting the fan speed, controlling the compressor, and managing air circulation.
◆ optimizeTemperatureSettings()
void demo::ClimateControl::optimizeTemperatureSettings | ( | const OccupancyData & | occupancyData | ) |
Integrates with the vehicle's occupancy sensors to optimize temperature settings based on passenger presence.
- Parameters
-
occupancyData The data from the occupancy sensors indicating the presence of passengers.
This function utilizes the information from the vehicle's occupancy sensors to optimize the temperature settings based on the number of occupants in the cabin. It adjusts the temperature distribution and airflow to provide personalized comfort for each passenger.
◆ receiveTemperatureInput()
void demo::ClimateControl::receiveTemperatureInput | ( | const std::vector< TemperatureSensor > & | sensors | ) |
Receives input from temperature sensors located inside the cabin.
- Parameters
-
sensors The temperature sensors inside the cabin.
This function reads the temperature measurements from the sensors and updates the internal state of the Climate Control software component.
The documentation for this class was generated from the following file:
- src/demo/climate_control.hpp
Generated by 1.9.7