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

10 lines
252 B
C
Raw Permalink Normal View History

2007-02-15 20:33:05 +00:00
#include "ir_sensor.h"
//-----------------------------------------------------------------------------
uint16 IR_Sensor::GetIRIntensity()
{
if(!parent) return 0;
2007-02-22 13:12:03 +00:00
return min(parent->GetADCValue(channel) + this->intensityCorrection, 1023);
}