Object Hunt  v0.2
Hunts for a not specified object in an unknown environment
Public Attributes | List of all members
UltraSonic::Response Struct Reference

Ultra sonic measurement response. More...

#include <ObjectHuntDefinitions.h>

Public Attributes

uint32_t id
 Identifier. More...
 
float distance_front
 Front sensor distance. More...
 
float distance_rear
 Rear sensor distance. More...
 
float distance_left
 Left sensor distance. More...
 
float distance_right
 Right sensor distance. More...
 

Detailed Description

Ultra sonic measurement response.

The base process will answer to each valid ultra sonic request with a response of this type.

Member Data Documentation

◆ distance_front

float UltraSonic::Response::distance_front

Front sensor distance.

Shows the distance to the next obstacle in cm (maximal value is defined in MAX_ULTRA_SONIC_DISTANCE). Contains a negative value, if the sensor was not requested (-1.0) or an error occurred (-2.0) while conducting the measurement.

◆ distance_left

float UltraSonic::Response::distance_left

Left sensor distance.

Shows the distance to the next obstacle in cm (maximal value is defined in MAX_ULTRA_SONIC_DISTANCE). Contains a negative value, if the sensor was not requested (-1.0) or an error occurred (-2.0) while conducting the measurement.

◆ distance_rear

float UltraSonic::Response::distance_rear

Rear sensor distance.

Shows the distance to the next obstacle in cm (maximal value is defined in MAX_ULTRA_SONIC_DISTANCE). Contains a negative value, if the sensor was not requested (-1.0) or an error occurred (-2.0) while conducting the measurement.

◆ distance_right

float UltraSonic::Response::distance_right

Right sensor distance.

Shows the distance to the next obstacle in cm (maximal value is defined in MAX_ULTRA_SONIC_DISTANCE). Contains a negative value, if the sensor was not requested (-1.0) or an error occurred (-2.0) while conducting the measurement.

◆ id

uint32_t UltraSonic::Response::id

Identifier.

Is used to map a response to the regarding request. Will be the same identifier as in the respecting request.


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