2020-02-09 01:47:52 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <GCS_MAVLink/GCS_MAVLink.h>
|
2020-07-24 14:31:42 -03:00
|
|
|
#include <AP_Mount/AP_Mount.h>
|
|
|
|
|
|
|
|
#if HAL_SOLO_GIMBAL_ENABLED
|
2020-02-09 01:47:52 -04:00
|
|
|
|
|
|
|
class AP_Camera_SoloGimbal {
|
|
|
|
public:
|
|
|
|
|
|
|
|
static void gopro_shutter_toggle();
|
|
|
|
static void gopro_capture_mode_toggle();
|
|
|
|
static void handle_gopro_heartbeat(mavlink_channel_t chan, const mavlink_message_t &msg);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
static GOPRO_CAPTURE_MODE gopro_capture_mode;
|
|
|
|
static GOPRO_HEARTBEAT_STATUS gopro_status;
|
|
|
|
static bool gopro_is_recording;
|
|
|
|
static mavlink_channel_t heartbeat_channel;
|
|
|
|
};
|
2020-07-24 14:31:42 -03:00
|
|
|
|
|
|
|
#endif // HAL_SOLO_GIMBAL_ENABLED
|