|
PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <camera_interface.h>
Public Member Functions | |
| CameraInterface () | |
| Constructor. More... | |
| virtual | ~CameraInterface ()=default |
| Destructor. More... | |
| virtual void | trigger (bool trigger_on_true) |
| trigger the camera More... | |
| virtual void | send_toggle_power (bool enable) |
| send command to turn the camera on/off More... | |
| virtual void | send_keep_alive (bool enable) |
| send command to prevent the camera from sleeping More... | |
| virtual void | info () |
| Display info. More... | |
| virtual bool | has_power_control () |
| Checks if the interface has support for camera power control. More... | |
| virtual bool | is_powered_on () |
| Checks if the camera connected to the interface is turned on. More... | |
Protected Member Functions | |
| virtual void | setup () |
| setup the interface More... | |
| void | get_pins () |
| get the hardware configuration More... | |
Protected Attributes | |
| param_t | _p_pin |
| int | _pins [6] |
Definition at line 12 of file camera_interface.h.
| CameraInterface::CameraInterface | ( | ) |
Constructor.
Definition at line 9 of file camera_interface.cpp.
|
virtualdefault |
Destructor.
|
protected |
get the hardware configuration
Definition at line 15 of file camera_interface.cpp.
References _p_pin, _pins, arraySize, param_find(), param_get(), and PARAM_INVALID.
Referenced by setup().
|
inlinevirtual |
Checks if the interface has support for camera power control.
Definition at line 54 of file camera_interface.h.
Referenced by CameraTrigger::Run(), CameraTrigger::start(), and CameraTrigger::status().
|
inlinevirtual |
Display info.
Definition at line 47 of file camera_interface.h.
Referenced by CameraTrigger::status().
|
inlinevirtual |
Checks if the camera connected to the interface is turned on.
Definition at line 61 of file camera_interface.h.
Referenced by CameraTrigger::Run(), CameraTrigger::start(), and CameraTrigger::status().
|
inlinevirtual |
send command to prevent the camera from sleeping
| enable |
Definition at line 42 of file camera_interface.h.
Referenced by CameraTrigger::keep_alive_down(), and CameraTrigger::keep_alive_up().
|
inlinevirtual |
send command to turn the camera on/off
| enable |
Definition at line 36 of file camera_interface.h.
Referenced by CameraTrigger::disengage_turn_on_off(), and CameraTrigger::engange_turn_on_off().
|
inlineprotectedvirtual |
setup the interface
Definition at line 68 of file camera_interface.h.
References get_pins().
|
inlinevirtual |
trigger the camera
| enable |
Definition at line 30 of file camera_interface.h.
Referenced by CameraTrigger::disengage(), and CameraTrigger::engage().
|
protected |
Definition at line 75 of file camera_interface.h.
Referenced by get_pins().
|
protected |
Definition at line 77 of file camera_interface.h.
Referenced by get_pins().