SensorsData::TemperatureData Struct Reference

Structure containing data from the temperature sensors. More...

Types

enum class  SENSOR_LOCATION
 Lists possible locations of temperature sensors. More...
 

Functions

ERROR_CODE get (SENSOR_LOCATION location, float &temperature)
 Gets the temperature value at a temperature sensor location. More...
 

Attributes

std::map< SENSOR_LOCATION, float > temperature_map
 Map storing the temperatures at the different temperature sensors location. More...
 

Detailed Description

Structure containing data from the temperature sensors.

Enumeration

◆ SENSOR_LOCATION

enum SENSOR_LOCATION
strong

Lists possible locations of temperature sensors.

Enumerator
IMU 

The temperature sensor is in the IMU.

BAROMETER 

The temperature sensor is in the barometer.

ONBOARD_LEFT 

The temperature sensor is next to the left image sensor.

ONBOARD_RIGHT 

The temperature sensor is next to the right image sensor.

Functions

◆ get()

ERROR_CODE get ( SENSOR_LOCATION  location,
float &  temperature 
)

Gets the temperature value at a temperature sensor location.

Parameters
location: Location of the temperature sensor to request.
Returns
Temperature in °C at the requested location.

Variables

◆ temperature_map

std::map<SENSOR_LOCATION, float> temperature_map

Map storing the temperatures at the different temperature sensors location.