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:
parent
3cb1b8f9f4
commit
363abab14e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,6 @@ class APM_BMP085_Class
|
||||
void ReadPress();
|
||||
void ReadTemp();
|
||||
void Calculate();
|
||||
|
||||
};
|
||||
|
||||
class APM_BMP085_HIL_Class
|
||||
|
Loading…
Reference in New Issue
Block a user