From 803027cbb45ebe01e4f8b427a7cc95728d6e5f47 Mon Sep 17 00:00:00 2001 From: sicarius Date: Sat, 17 Feb 2007 13:42:00 +0000 Subject: +++ enhanced framework hardware interface --- source/Concept/Framework/robot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/Concept/Framework/robot.cpp') 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; -- cgit v1.2.3