PX4 Firmware
PX4 Autopilot Software http://px4.io
|
External camera-IMU synchronisation and triggering, and support for camera manipulation using PWM signals over FMU auxillary pins. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <stdbool.h>
#include <poll.h>
#include <mathlib/mathlib.h>
#include <matrix/math.hpp>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
#include <systemlib/err.h>
#include <parameters/param.h>
#include <systemlib/mavlink_log.h>
#include <uORB/PublicationQueued.hpp>
#include <uORB/Subscription.hpp>
#include <uORB/topics/camera_trigger.h>
#include <uORB/topics/camera_capture.h>
#include <uORB/topics/sensor_combined.h>
#include <uORB/topics/vehicle_command.h>
#include <uORB/topics/vehicle_command_ack.h>
#include <uORB/topics/vehicle_local_position.h>
#include <uORB/topics/vehicle_global_position.h>
#include <drivers/drv_hrt.h>
#include "interfaces/src/camera_interface.h"
#include "interfaces/src/gpio.h"
#include "interfaces/src/pwm.h"
#include "interfaces/src/seagull_map2.h"
Go to the source code of this file.
Classes | |
class | CameraTrigger |
Namespaces | |
camera_trigger | |
Macros | |
#define | commandParamToInt(n) static_cast<int>(n >= 0 ? n + 0.5f : n - 0.5f) |
Functions | |
__EXPORT int | camera_trigger_main (int argc, char *argv[]) |
static int | usage () |
Variables | |
CameraTrigger * | camera_trigger::g_camera_trigger |
External camera-IMU synchronisation and triggering, and support for camera manipulation using PWM signals over FMU auxillary pins.
Definition in file camera_trigger.cpp.
#define commandParamToInt | ( | n | ) | static_cast<int>(n >= 0 ? n + 0.5f : n - 0.5f) |
Definition at line 93 of file camera_trigger.cpp.
Referenced by CameraTrigger::Run().
enum camera_interface_mode_t : int32_t |
Enumerator | |
---|---|
CAMERA_INTERFACE_MODE_NONE | |
CAMERA_INTERFACE_MODE_GPIO | |
CAMERA_INTERFACE_MODE_SEAGULL_MAP2_PWM | |
CAMERA_INTERFACE_MODE_MAVLINK | |
CAMERA_INTERFACE_MODE_GENERIC_PWM |
Definition at line 77 of file camera_trigger.cpp.
enum trigger_mode_t : int32_t |
Enumerator | |
---|---|
TRIGGER_MODE_NONE | |
TRIGGER_MODE_INTERVAL_ON_CMD | |
TRIGGER_MODE_INTERVAL_ALWAYS_ON | |
TRIGGER_MODE_DISTANCE_ALWAYS_ON | |
TRIGGER_MODE_DISTANCE_ON_CMD |
Definition at line 85 of file camera_trigger.cpp.
int camera_trigger_main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 825 of file camera_trigger.cpp.
References CameraTrigger::CameraTrigger(), camera_trigger::g_camera_trigger, CameraTrigger::start(), CameraTrigger::status(), CameraTrigger::stop(), CameraTrigger::test(), CameraTrigger::toggle_power(), and usage().
|
static |
Definition at line 819 of file camera_trigger.cpp.
Referenced by camera_trigger_main().