From 655dd7522fb60e2ef0e68437337178184109f347 Mon Sep 17 00:00:00 2001 From: sicarius Date: Thu, 22 Feb 2007 13:12:03 +0000 Subject: Codework --- source/Concept/Framework/modules/input/ir_sensor.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/Concept/Framework/modules/input/ir_sensor.h') diff --git a/source/Concept/Framework/modules/input/ir_sensor.h b/source/Concept/Framework/modules/input/ir_sensor.h index 30e6ea4..74396ec 100755 --- a/source/Concept/Framework/modules/input/ir_sensor.h +++ b/source/Concept/Framework/modules/input/ir_sensor.h @@ -12,12 +12,14 @@ public: { this->parent = NULL; this->moduleId = 0; + this->intensityCorrection = 0; } IR_Sensor(uint32 sensorId) { this->parent = NULL; this->moduleId = sensorId; + this->intensityCorrection = 0; switch(sensorId) { @@ -32,12 +34,15 @@ public: break; case IO_SENSOR_IR_100_DEG: this->channel = 3; + this->intensityCorrection = 40; break; case IO_SENSOR_IR_180_DEG: this->channel = 4; + this->intensityCorrection = 50; break; case IO_SENSOR_IR_260_DEG: this->channel = 5; + this->intensityCorrection = 70; break; case IO_SENSOR_IR_300_DEG: this->channel = 6; @@ -55,6 +60,8 @@ protected: //Hardware uint8 channel; + uint8 intensityCorrection; + public: uint16 GetIRIntensity(); }; -- cgit v1.2.3