This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
rc2007-soccer/source/Concept/Framework/modules/input/ir_sensor.c
2007-02-22 13:12:03 +00:00

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);
}