mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/driver-ms56xx.git
synced 2025-06-09 17:46:00 +00:00
Smaller fixes
This commit is contained in:
parent
6403df9561
commit
37a46c7d87
@ -132,8 +132,6 @@ namespace sta
|
|||||||
*/
|
*/
|
||||||
bool init();
|
bool init();
|
||||||
|
|
||||||
void delay();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set the oversampling rate.
|
* @brief Set the oversampling rate.
|
||||||
*
|
*
|
||||||
@ -145,16 +143,14 @@ namespace sta
|
|||||||
* @brief Reads the current pressure value from the sensor. Obtains the temperature value from the interal sensor.
|
* @brief Reads the current pressure value from the sensor. Obtains the temperature value from the interal sensor.
|
||||||
*
|
*
|
||||||
* @param unit Specifies the unit for the pressure measurement. Default is hPa.
|
* @param unit Specifies the unit for the pressure measurement. Default is hPa.
|
||||||
* @param cachedTemp Specifies if a cached temperature value should be used.
|
* @return float The measured value in the specified unit.
|
||||||
* @return int32_t The measured value in the specified unit.
|
|
||||||
*/
|
*/
|
||||||
float getPressure(Unit unit = Unit::hPa);
|
float getPressure(Unit unit = Unit::hPa);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Reads the current temperature value from the sensor.
|
* @brief Reads the current temperature value from the sensor.
|
||||||
*
|
*
|
||||||
* @return int32_t The measured temperature.
|
* @return float The measured temperature.
|
||||||
* @note There are better sensors for temperature measurements than the MS56xx.
|
|
||||||
*/
|
*/
|
||||||
float getTemperature();
|
float getTemperature();
|
||||||
|
|
||||||
|
@ -44,11 +44,6 @@ namespace sta
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MS56xx::delay()
|
|
||||||
{
|
|
||||||
delay_(osrDelay());
|
|
||||||
}
|
|
||||||
|
|
||||||
void MS56xx::setOsr(OsrLevel osr)
|
void MS56xx::setOsr(OsrLevel osr)
|
||||||
{
|
{
|
||||||
osr_ = osr;
|
osr_ = osr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user