Measure barometric air pressure around the BMP280 sensor
Simulink Coder Support Package for BeagleBone Blue Hardware / Sensors
The Barometer block measures the barometric air pressure around the
BMP280 barometer on the BeagleBone® Blue hardware, in pascal. The block outputs the pressure as a 1-by-1 array
double data type.
If you simulate a model that contains the Barometer block without connecting the hardware, the block outputs zeroes. For more information, see Block Produces Zeros or Does Nothing in Simulation (Simulink).
Pressure— Air pressure around barometer
The Pressure port outputs the barometric air pressure around the BMP280 barometer on the hardware. The air pressure is output as a 1-by-1 array in pascal.
Sample time— Time interval to read values from barometer
-1| nonnegative real value
Specify how often the block reads values from the barometer, in seconds.
When you specify this parameter as
-1, Simulink® determines the best sample time for the block based on the
block context within the model.
Over sampling rate— Rate at which values are sampled
Select a rate at which the barometer samples the air pressure values, in Hertz.
IIR filter coefficient— Coefficient of IIR filter
Select a coefficient of the infinite impulse response (IIR) filter to reduce the noise-related error in the sampled values.