diff options
author | sicarius <devnull@localhost> | 2007-02-17 14:42:00 +0100 |
---|---|---|
committer | sicarius <devnull@localhost> | 2007-02-17 14:42:00 +0100 |
commit | 803027cbb45ebe01e4f8b427a7cc95728d6e5f47 (patch) | |
tree | bbb3bd0a042e75e4d01d2e13faf1fe30851eadbc /source/Concept/Framework/robot.cpp | |
parent | 4a2ba4b7105d168932163cbd07a062fdf2ba00e9 (diff) | |
download | rc2007-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.cpp | 4 |
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;
|