C4EV3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Fields
SensorHandler Struct Reference

#include <ev3_sensors.h>

Data Fields

bool(* Init )(int port)
 
void(* Exit )(int port)
 
int currentSensorMode [NUM_INPUTS]
 

Field Documentation

int SensorHandler::currentSensorMode[NUM_INPUTS]

Contains a value for each sensor that represents the mode in which the sensor it's working.

For example take the EV3 ultrasonic sensor: the currentSensorMode could have three different values:

  • listen mode
  • distance mode mm
  • distance mode in

Reading the distance in cm is a different reading mode, because the conversion is done from code, it's not a value that we receive from the sensor.

void(* SensorHandler::Exit)(int port)
bool(* SensorHandler::Init)(int port)

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