PX4 Firmware
PX4 Autopilot Software http://px4.io
CameraFeedback Class Reference

#include <camera_feedback.hpp>

Collaboration diagram for CameraFeedback:

Public Member Functions

 CameraFeedback ()
 Constructor. More...
 
 ~CameraFeedback ()
 Destructor, also kills task. More...
 
int start ()
 Start the task. More...
 
void stop ()
 Stop the task. More...
 

Private Member Functions

void task_main ()
 

Static Private Member Functions

static int task_main_trampoline (int argc, char *argv[])
 Shim for calling task_main from task_create. More...
 

Private Attributes

bool _task_should_exit
 if true, task should exit More...
 
int _main_task
 handle for task More...
 
int _trigger_sub
 
int _gpos_sub
 
int _att_sub
 
orb_advert_t _capture_pub
 
param_t _p_camera_capture_feedback
 
int32_t _camera_capture_feedback
 

Detailed Description

Definition at line 65 of file camera_feedback.hpp.

Constructor & Destructor Documentation

◆ CameraFeedback()

CameraFeedback::CameraFeedback ( )

Constructor.

Definition at line 49 of file camera_feedback.cpp.

References _camera_capture_feedback, _p_camera_capture_feedback, param_find(), and param_get().

Referenced by camera_feedback_main().

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

◆ ~CameraFeedback()

CameraFeedback::~CameraFeedback ( )

Destructor, also kills task.

Definition at line 66 of file camera_feedback.cpp.

References _main_task, _task_should_exit, and camera_feedback::g_camera_feedback.

Member Function Documentation

◆ start()

int CameraFeedback::start ( )

Start the task.

Returns
OK on success.

Definition at line 93 of file camera_feedback.cpp.

References _main_task, OK, task_main_trampoline(), and warn.

Referenced by camera_feedback_main().

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

◆ stop()

void CameraFeedback::stop ( )

Stop the task.

Definition at line 114 of file camera_feedback.cpp.

References camera_feedback::g_camera_feedback.

Referenced by camera_feedback_main().

Here is the caller graph for this function:

◆ task_main()

◆ task_main_trampoline()

int CameraFeedback::task_main_trampoline ( int  argc,
char *  argv[] 
)
staticprivate

Shim for calling task_main from task_create.

Definition at line 232 of file camera_feedback.cpp.

References camera_feedback::g_camera_feedback, and task_main().

Referenced by start().

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

Member Data Documentation

◆ _att_sub

int CameraFeedback::_att_sub
private

Definition at line 97 of file camera_feedback.hpp.

Referenced by task_main().

◆ _camera_capture_feedback

int32_t CameraFeedback::_camera_capture_feedback
private

Definition at line 103 of file camera_feedback.hpp.

Referenced by CameraFeedback(), and task_main().

◆ _capture_pub

orb_advert_t CameraFeedback::_capture_pub
private

Definition at line 99 of file camera_feedback.hpp.

Referenced by task_main().

◆ _gpos_sub

int CameraFeedback::_gpos_sub
private

Definition at line 96 of file camera_feedback.hpp.

Referenced by task_main().

◆ _main_task

int CameraFeedback::_main_task
private

handle for task

Definition at line 93 of file camera_feedback.hpp.

Referenced by start(), task_main(), and ~CameraFeedback().

◆ _p_camera_capture_feedback

param_t CameraFeedback::_p_camera_capture_feedback
private

Definition at line 101 of file camera_feedback.hpp.

Referenced by CameraFeedback().

◆ _task_should_exit

bool CameraFeedback::_task_should_exit
private

if true, task should exit

Definition at line 92 of file camera_feedback.hpp.

Referenced by task_main(), and ~CameraFeedback().

◆ _trigger_sub

int CameraFeedback::_trigger_sub
private

Definition at line 95 of file camera_feedback.hpp.

Referenced by task_main().


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