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

Public Member Functions

 DfTROneWrapper (uint8_t rotation=distance_sensor_s::ROTATION_DOWNWARD_FACING)
 
 ~DfTROneWrapper ()
 
int start ()
 Start automatic measurement. More...
 
int stop ()
 Stop automatic measurement. More...
 

Private Member Functions

int _publish (struct range_sensor_data &data)
 

Private Attributes

uint8_t _rotation
 
orb_advert_t _range_topic
 
int _orb_class_instance
 

Detailed Description

Definition at line 75 of file df_trone_wrapper.cpp.

Constructor & Destructor Documentation

◆ DfTROneWrapper()

DfTROneWrapper::DfTROneWrapper ( uint8_t  rotation = distance_sensor_s::ROTATION_DOWNWARD_FACING)

Definition at line 109 of file df_trone_wrapper.cpp.

Referenced by df_trone_wrapper::start().

Here is the caller graph for this function:

◆ ~DfTROneWrapper()

DfTROneWrapper::~DfTROneWrapper ( )

Definition at line 117 of file df_trone_wrapper.cpp.

Member Function Documentation

◆ _publish()

int DfTROneWrapper::_publish ( struct range_sensor_data &  data)
private

◆ start()

int DfTROneWrapper::start ( )

Start automatic measurement.

Returns
0 on success

Definition at line 121 of file df_trone_wrapper.cpp.

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

Referenced by df_trone_wrapper::probe(), and df_trone_wrapper::start().

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

◆ stop()

int DfTROneWrapper::stop ( )

Stop automatic measurement.

Returns
0 on success

Definition at line 143 of file df_trone_wrapper.cpp.

References stop().

Referenced by df_trone_wrapper::stop().

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

Member Data Documentation

◆ _orb_class_instance

int DfTROneWrapper::_orb_class_instance
private

Definition at line 103 of file df_trone_wrapper.cpp.

Referenced by _publish().

◆ _range_topic

orb_advert_t DfTROneWrapper::_range_topic
private

Definition at line 101 of file df_trone_wrapper.cpp.

Referenced by _publish().

◆ _rotation

uint8_t DfTROneWrapper::_rotation
private

Definition at line 99 of file df_trone_wrapper.cpp.

Referenced by _publish().


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