Changed bit shifts to division, relying on the compiler.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3265 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2011-09-05 04:32:17 +00:00
parent 3cb1b8f9f4
commit 363abab14e
2 changed files with 4 additions and 4 deletions

View File

@ -192,8 +192,8 @@ void APM_BMP085_Class::ReadPress()
}
// grab result
//RawPress /= PRESS_FILTER_SIZE;
RawPress >>= 3;
RawPress /= PRESS_FILTER_SIZE;
//RawPress >>= 3;
RawPress += _offset_press;
}
@ -245,7 +245,8 @@ void APM_BMP085_Class::ReadTemp()
}
// grab result
RawTemp >>= 4;
RawTemp /= TEMP_FILTER_SIZE;
//RawTemp >>= 4;
RawTemp += _offset_temp;
}

View File

@ -41,7 +41,6 @@ class APM_BMP085_Class
void ReadPress();
void ReadTemp();
void Calculate();
};
class APM_BMP085_HIL_Class