mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/driver-ms56xx.git
synced 2025-06-09 17:46:00 +00:00
Some cleanup
This commit is contained in:
parent
48cdd646db
commit
142db575a7
@ -252,11 +252,6 @@ namespace sta
|
||||
OsrLevel osr_;
|
||||
Intf intf_;
|
||||
|
||||
float dT_;
|
||||
float dTInit_;
|
||||
bool pressReq_ = false;
|
||||
bool tempReq_ = false;
|
||||
|
||||
// Pressure at sealevel. Use the standard atmosphere per default.
|
||||
float sealevel_ = 1013.25;
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
namespace sta
|
||||
{
|
||||
MS56xx::MS56xx(SPIDevice * device, Version version, DelayUsFunc delay, OsrLevel osr = OsrLevel::_1024)
|
||||
MS56xx::MS56xx(SPIDevice * device, Version version, DelayUsFunc delay, OsrLevel osr /* = OsrLevel::_1024 */)
|
||||
: device_{device},
|
||||
version_{version},
|
||||
delay_{delay},
|
||||
@ -77,7 +77,7 @@ namespace sta
|
||||
busRead(MS56xx::Operations::ADC_RESULT, buffer, 3);
|
||||
|
||||
uint32_t D2 = buffer[0] << 16 | buffer[1] << 8 | buffer[2];
|
||||
dT_ = D2 - C_[5];
|
||||
float dT_ = D2 - C_[5];
|
||||
|
||||
requestData(PRESSURE);
|
||||
busRead(MS56xx::Operations::ADC_RESULT, buffer, 3);
|
||||
@ -102,7 +102,7 @@ namespace sta
|
||||
|
||||
uint32_t D2 = buffer[0] << 16 | buffer[1] << 8 | buffer[2];
|
||||
|
||||
dT_ = D2 - C_[5];
|
||||
float dT_ = D2 - C_[5];
|
||||
return (2000 + dT_ * C_[6]) * 0.01;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user