Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
Adafruit_BMP3XX Class Reference

Mock BMP3XX sensor backed by SerialSim data. More...

#include <Serial_Sim_BMP390.h>

Collaboration diagram for Adafruit_BMP3XX:
Collaboration graph

Public Member Functions

 Adafruit_BMP3XX ()
bool begin_SPI (int cs)
bool begin_I2C (int addr)
bool begin_I2C ()
void setTemperatureOversampling (int oversampling)
void setPressureOversampling (int oversampling)
void setIIRFilterCoeff (int coeff)
void setOutputDataRate (int rate)
void setConversionDelay (int delay)
void startConversion ()
bool updateConversion ()
bool performReading ()
float getAlt ()
float readAltitude (float seaLevelPressure=1013.25)
float getPressure ()
float getTemperature ()

Public Attributes

float temperature = 0
float pressure = 0

Detailed Description

Mock BMP3XX sensor backed by SerialSim data.

Note
When to use: compile flight code on a host without real hardware while exercising baro-dependent logic.

Definition at line 11 of file Serial_Sim_BMP390.h.

Constructor & Destructor Documentation

◆ Adafruit_BMP3XX()

Adafruit_BMP3XX::Adafruit_BMP3XX ( )
inline

Definition at line 13 of file Serial_Sim_BMP390.h.

Member Function Documentation

◆ begin_I2C() [1/2]

bool Adafruit_BMP3XX::begin_I2C ( )
inline

Definition at line 17 of file Serial_Sim_BMP390.h.

◆ begin_I2C() [2/2]

bool Adafruit_BMP3XX::begin_I2C ( int addr)
inline

Definition at line 16 of file Serial_Sim_BMP390.h.

◆ begin_SPI()

bool Adafruit_BMP3XX::begin_SPI ( int cs)
inline

Definition at line 15 of file Serial_Sim_BMP390.h.

◆ getAlt()

float Adafruit_BMP3XX::getAlt ( )
inline

Definition at line 44 of file Serial_Sim_BMP390.h.

◆ getPressure()

float Adafruit_BMP3XX::getPressure ( )
inline

Definition at line 57 of file Serial_Sim_BMP390.h.

◆ getTemperature()

float Adafruit_BMP3XX::getTemperature ( )
inline

Definition at line 63 of file Serial_Sim_BMP390.h.

◆ performReading()

bool Adafruit_BMP3XX::performReading ( )
inline

Definition at line 30 of file Serial_Sim_BMP390.h.

◆ readAltitude()

float Adafruit_BMP3XX::readAltitude ( float seaLevelPressure = 1013.25)
inline

Definition at line 50 of file Serial_Sim_BMP390.h.

◆ setConversionDelay()

void Adafruit_BMP3XX::setConversionDelay ( int delay)
inline

Definition at line 23 of file Serial_Sim_BMP390.h.

◆ setIIRFilterCoeff()

void Adafruit_BMP3XX::setIIRFilterCoeff ( int coeff)
inline

Definition at line 21 of file Serial_Sim_BMP390.h.

◆ setOutputDataRate()

void Adafruit_BMP3XX::setOutputDataRate ( int rate)
inline

Definition at line 22 of file Serial_Sim_BMP390.h.

◆ setPressureOversampling()

void Adafruit_BMP3XX::setPressureOversampling ( int oversampling)
inline

Definition at line 20 of file Serial_Sim_BMP390.h.

◆ setTemperatureOversampling()

void Adafruit_BMP3XX::setTemperatureOversampling ( int oversampling)
inline

Definition at line 19 of file Serial_Sim_BMP390.h.

◆ startConversion()

void Adafruit_BMP3XX::startConversion ( )
inline

Definition at line 24 of file Serial_Sim_BMP390.h.

◆ updateConversion()

bool Adafruit_BMP3XX::updateConversion ( )
inline

Definition at line 25 of file Serial_Sim_BMP390.h.

Member Data Documentation

◆ pressure

float Adafruit_BMP3XX::pressure = 0

Definition at line 28 of file Serial_Sim_BMP390.h.

◆ temperature

float Adafruit_BMP3XX::temperature = 0

Definition at line 27 of file Serial_Sim_BMP390.h.


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