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

Public Member Functions

 QTRSensorsRC (unsigned char *pins, unsigned char numSensors, unsigned int timeout=4000, unsigned char emitterPin=255)
 
void init (unsigned char *pins, unsigned char numSensors, unsigned int timeout=2000, unsigned char emitterPin=QTR_NO_EMITTER_PIN)
 
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 161 of file QTRSensors.h.

Constructor & Destructor Documentation

◆ QTRSensorsRC() [1/2]

QTRSensorsRC::QTRSensorsRC ( )

Definition at line 365 of file QTRSensors.cpp.

◆ QTRSensorsRC() [2/2]

QTRSensorsRC::QTRSensorsRC ( unsigned char *  pins,
unsigned char  numSensors,
unsigned int  timeout = 4000,
unsigned char  emitterPin = 255 
)

Definition at line 374 of file QTRSensors.cpp.

Member Function Documentation

◆ calibrate()

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

Definition at line 149 of file QTRSensors.cpp.

◆ emittersOff()

void QTRSensors::emittersOff ( )
inherited

Definition at line 110 of file QTRSensors.cpp.

◆ emittersOn()

void QTRSensors::emittersOn ( )
inherited

Definition at line 119 of file QTRSensors.cpp.

◆ init() [1/2]

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

Definition at line 41 of file QTRSensors.cpp.

◆ init() [2/2]

void QTRSensorsRC::init ( unsigned char *  pins,
unsigned char  numSensors,
unsigned int  timeout = 2000,
unsigned char  emitterPin = QTR_NO_EMITTER_PIN 
)

Definition at line 407 of file QTRSensors.cpp.

◆ read()

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

Definition at line 81 of file QTRSensors.cpp.

◆ readCalibrated()

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

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 
)
inherited

Definition at line 315 of file QTRSensors.cpp.

◆ resetCalibration()

void QTRSensors::resetCalibration ( )
inherited

Definition at line 129 of file QTRSensors.cpp.

Member Data Documentation

◆ _emitterPin

unsigned char QTRSensors::_emitterPin
protectedinherited

Definition at line 142 of file QTRSensors.h.

◆ _lastValue

int QTRSensors::_lastValue
protectedinherited

Definition at line 144 of file QTRSensors.h.

◆ _maxValue

unsigned int QTRSensors::_maxValue
protectedinherited

Definition at line 143 of file QTRSensors.h.

◆ _numSensors

unsigned char QTRSensors::_numSensors
protectedinherited

Definition at line 141 of file QTRSensors.h.

◆ _pins

unsigned char* QTRSensors::_pins
protectedinherited

Definition at line 140 of file QTRSensors.h.

◆ calibratedMaximumOff

unsigned int* QTRSensors::calibratedMaximumOff
inherited

Definition at line 127 of file QTRSensors.h.

◆ calibratedMaximumOn

unsigned int* QTRSensors::calibratedMaximumOn
inherited

Definition at line 125 of file QTRSensors.h.

◆ calibratedMinimumOff

unsigned int* QTRSensors::calibratedMinimumOff
inherited

Definition at line 126 of file QTRSensors.h.

◆ calibratedMinimumOn

unsigned int* QTRSensors::calibratedMinimumOn
inherited

Definition at line 124 of file QTRSensors.h.


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