Zumo32U4 library
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
QTRSensors Class Referenceabstract
Inheritance diagram for QTRSensors:
QTRSensorsAnalog QTRSensorsRC Zumo32U4LineSensors

Public Member Functions

void read (unsigned int *sensor_values, unsigned char readMode=QTR_EMITTERS_ON)
 
void emittersOff ()
 
void emittersOn ()
 
void calibrate (unsigned char readMode=QTR_EMITTERS_ON)
 
void resetCalibration ()
 
void readCalibrated (unsigned int *sensor_values, unsigned char readMode=QTR_EMITTERS_ON)
 
int readLine (unsigned int *sensor_values, unsigned char readMode=QTR_EMITTERS_ON, unsigned char white_line=0)
 

Public Attributes

unsigned int * calibratedMinimumOn
 
unsigned int * calibratedMaximumOn
 
unsigned int * calibratedMinimumOff
 
unsigned int * calibratedMaximumOff
 

Protected Member Functions

void init (unsigned char *pins, unsigned char numSensors, unsigned char emitterPin)
 

Protected Attributes

unsigned char * _pins
 
unsigned char _numSensors
 
unsigned char _emitterPin
 
unsigned int _maxValue
 
int _lastValue
 

Detailed Description

Definition at line 48 of file QTRSensors.h.

Constructor & Destructor Documentation

◆ ~QTRSensors()

QTRSensors::~QTRSensors ( )

Definition at line 552 of file QTRSensors.cpp.

◆ QTRSensors()

QTRSensors::QTRSensors ( )
inlineprotected

Definition at line 133 of file QTRSensors.h.

Member Function Documentation

◆ calibrate()

void QTRSensors::calibrate ( unsigned char  readMode = QTR_EMITTERS_ON)

Definition at line 149 of file QTRSensors.cpp.

◆ emittersOff()

void QTRSensors::emittersOff ( )

Definition at line 110 of file QTRSensors.cpp.

◆ emittersOn()

void QTRSensors::emittersOn ( )

Definition at line 119 of file QTRSensors.cpp.

◆ init()

void QTRSensors::init ( unsigned char *  pins,
unsigned char  numSensors,
unsigned char  emitterPin 
)
protected

Definition at line 41 of file QTRSensors.cpp.

◆ read()

void QTRSensors::read ( unsigned int *  sensor_values,
unsigned char  readMode = QTR_EMITTERS_ON 
)

Definition at line 81 of file QTRSensors.cpp.

◆ readCalibrated()

void QTRSensors::readCalibrated ( unsigned int *  sensor_values,
unsigned char  readMode = QTR_EMITTERS_ON 
)

Definition at line 235 of file QTRSensors.cpp.

◆ readLine()

int QTRSensors::readLine ( unsigned int *  sensor_values,
unsigned char  readMode = QTR_EMITTERS_ON,
unsigned char  white_line = 0 
)

Definition at line 315 of file QTRSensors.cpp.

◆ resetCalibration()

void QTRSensors::resetCalibration ( )

Definition at line 129 of file QTRSensors.cpp.

Member Data Documentation

◆ _emitterPin

unsigned char QTRSensors::_emitterPin
protected

Definition at line 142 of file QTRSensors.h.

◆ _lastValue

int QTRSensors::_lastValue
protected

Definition at line 144 of file QTRSensors.h.

◆ _maxValue

unsigned int QTRSensors::_maxValue
protected

Definition at line 143 of file QTRSensors.h.

◆ _numSensors

unsigned char QTRSensors::_numSensors
protected

Definition at line 141 of file QTRSensors.h.

◆ _pins

unsigned char* QTRSensors::_pins
protected

Definition at line 140 of file QTRSensors.h.

◆ calibratedMaximumOff

unsigned int* QTRSensors::calibratedMaximumOff

Definition at line 127 of file QTRSensors.h.

◆ calibratedMaximumOn

unsigned int* QTRSensors::calibratedMaximumOn

Definition at line 125 of file QTRSensors.h.

◆ calibratedMinimumOff

unsigned int* QTRSensors::calibratedMinimumOff

Definition at line 126 of file QTRSensors.h.

◆ calibratedMinimumOn

unsigned int* QTRSensors::calibratedMinimumOn

Definition at line 124 of file QTRSensors.h.


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