summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/robot.cpp
diff options
context:
space:
mode:
authorsicarius <devnull@localhost>2007-02-17 14:42:00 +0100
committersicarius <devnull@localhost>2007-02-17 14:42:00 +0100
commit803027cbb45ebe01e4f8b427a7cc95728d6e5f47 (patch)
treebbb3bd0a042e75e4d01d2e13faf1fe30851eadbc /source/Concept/Framework/robot.cpp
parent4a2ba4b7105d168932163cbd07a062fdf2ba00e9 (diff)
downloadrc2007-soccer-803027cbb45ebe01e4f8b427a7cc95728d6e5f47.tar
rc2007-soccer-803027cbb45ebe01e4f8b427a7cc95728d6e5f47.zip
+++ enhanced framework hardware interface
Diffstat (limited to 'source/Concept/Framework/robot.cpp')
-rw-r--r--source/Concept/Framework/robot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Concept/Framework/robot.cpp b/source/Concept/Framework/robot.cpp
index a051dd4..5c673cb 100644
--- a/source/Concept/Framework/robot.cpp
+++ b/source/Concept/Framework/robot.cpp
@@ -95,8 +95,8 @@ uint16 Robot::GetADCValue(uint8 channel)
uint32 result = 0;
- //Activate ADC and set division factor to 64
- ADCSRA = (1 << ADEN) | (1 << ADPS2) | (1 << ADPS1);
+ //Activate ADC and set division factor to 8
+ ADCSRA = (1 << ADEN) | (1 << ADPS1) | (1 << ADPS0);
//Set multiplexer channel
ADMUX = channel;