reworked filter on temperature.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2554 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
8fb19f4092
commit
7ad6bff177
@ -199,8 +199,11 @@ void APM_BMP085_Class::ReadTemp()
|
|||||||
tmp2 = Wire.receive();
|
tmp2 = Wire.receive();
|
||||||
while(!Wire.available()); // wait
|
while(!Wire.available()); // wait
|
||||||
tmp = Wire.receive();
|
tmp = Wire.receive();
|
||||||
RawTemp = tmp2 << 8 | tmp;
|
tmp2 = tmp2 << 8 | tmp;
|
||||||
//RawTemp = RawTemp >> 1;
|
if(RawTemp = 0)
|
||||||
|
RawTemp = tmp2;
|
||||||
|
RawTemp += tmp2;
|
||||||
|
RawTemp = RawTemp >> 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate Temperature and Pressure in real units.
|
// Calculate Temperature and Pressure in real units.
|
||||||
|
Loading…
Reference in New Issue
Block a user