summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/modules/input/ir_sensor.h
diff options
context:
space:
mode:
authorsicarius <devnull@localhost>2007-02-22 14:12:03 +0100
committersicarius <devnull@localhost>2007-02-22 14:12:03 +0100
commit655dd7522fb60e2ef0e68437337178184109f347 (patch)
treebebff27847c72ebf4be3d763f1da4f66d704dffa /source/Concept/Framework/modules/input/ir_sensor.h
parent9525458918383afbf324854fc2130d3740154da3 (diff)
downloadrc2007-soccer-655dd7522fb60e2ef0e68437337178184109f347.tar
rc2007-soccer-655dd7522fb60e2ef0e68437337178184109f347.zip
Codework
Diffstat (limited to 'source/Concept/Framework/modules/input/ir_sensor.h')
-rwxr-xr-xsource/Concept/Framework/modules/input/ir_sensor.h7
1 files changed, 7 insertions, 0 deletions
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();
};