PX4 Firmware
PX4 Autopilot Software http://px4.io
DfBmp280Wrapper Class Reference
Inheritance diagram for DfBmp280Wrapper:
Collaboration diagram for DfBmp280Wrapper:

Public Member Functions

 DfBmp280Wrapper ()
 
 ~DfBmp280Wrapper ()
 
int start ()
 Start automatic measurement. More...
 
int stop ()
 Stop automatic measurement. More...
 
- Public Member Functions inherited from BMP280
 BMP280 (bmp280::IBMP280 *interface)
 
virtual ~BMP280 ()
 
int init ()
 
void print_info ()
 

Private Member Functions

int _publish (struct baro_sensor_data &data)
 

Private Attributes

orb_advert_t _baro_topic
 
int _baro_orb_class_instance
 
perf_counter_t _baro_sample_perf
 

Detailed Description

Definition at line 72 of file df_bmp280_wrapper.cpp.

Constructor & Destructor Documentation

◆ DfBmp280Wrapper()

DfBmp280Wrapper::DfBmp280Wrapper ( )

Definition at line 104 of file df_bmp280_wrapper.cpp.

Referenced by df_bmp280_wrapper::start().

Here is the caller graph for this function:

◆ ~DfBmp280Wrapper()

DfBmp280Wrapper::~DfBmp280Wrapper ( )

Definition at line 112 of file df_bmp280_wrapper.cpp.

References _baro_sample_perf, and perf_free().

Here is the call graph for this function:

Member Function Documentation

◆ _publish()

int DfBmp280Wrapper::_publish ( struct baro_sensor_data &  data)
private

Definition at line 154 of file df_bmp280_wrapper.cpp.

References _baro_orb_class_instance, _baro_sample_perf, _baro_topic, sensor_baro_s::error_count, hrt_absolute_time(), orb_advertise_multi(), ORB_ID, ORB_PRIO_DEFAULT, orb_publish(), perf_begin(), perf_end(), sensor_baro_s::pressure, sensor_baro_s::temperature, and sensor_baro_s::timestamp.

Here is the call graph for this function:

◆ start()

int DfBmp280Wrapper::start ( )

Start automatic measurement.

Returns
0 on success

Definition at line 117 of file df_bmp280_wrapper.cpp.

References BMP280::init(), and start().

Referenced by df_bmp280_wrapper::start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stop()

int DfBmp280Wrapper::stop ( )

Stop automatic measurement.

Returns
0 on success

Definition at line 141 of file df_bmp280_wrapper.cpp.

References stop().

Referenced by df_bmp280_wrapper::stop().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _baro_orb_class_instance

int DfBmp280Wrapper::_baro_orb_class_instance
private

Definition at line 98 of file df_bmp280_wrapper.cpp.

Referenced by _publish().

◆ _baro_sample_perf

perf_counter_t DfBmp280Wrapper::_baro_sample_perf
private

Definition at line 100 of file df_bmp280_wrapper.cpp.

Referenced by _publish(), and ~DfBmp280Wrapper().

◆ _baro_topic

orb_advert_t DfBmp280Wrapper::_baro_topic
private

Definition at line 96 of file df_bmp280_wrapper.cpp.

Referenced by _publish().


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