modm API documentation
modm::HclaX< I2cMaster >::Data Struct Reference

Public Member Functions

float getPressure ()
 

Friends

template<typename I2cMaster >
class HclaX
 

Member Function Documentation

template<typename I2cMaster >
float modm::HclaX< I2cMaster >::Data::getPressure ( )
inline

This method returns the pressure as a normalized float from 0-1. You have to scale and offset this according to the specific sensor you have. So if you have HCLA12X5U, you can measure +12.5mBar, you need to multiply it with 12.5f to get the pressure in mBar. If you have HCLA12X5B, which can measure ±12.5mBar you first need to subtract 0.5f and then multiply it with 12.5f!


The documentation for this struct was generated from the following file: