9 lines
252 B
C
Executable file
9 lines
252 B
C
Executable file
#include "ir_sensor.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
uint16 IR_Sensor::GetIRIntensity()
|
|
{
|
|
if(!parent) return 0;
|
|
|
|
return min(parent->GetADCValue(channel) + this->intensityCorrection, 1023);
|
|
}
|