CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Camera/AP_Camera_SoloGimbal.h
Views: 1798
1
#pragma once
2
3
#include "AP_Camera_config.h"
4
5
#if AP_CAMERA_SOLOGIMBAL_ENABLED
6
7
#include "AP_Camera_Backend.h"
8
#include <GCS_MAVLink/GCS_MAVLink.h>
9
10
class AP_Camera_SoloGimbal : public AP_Camera_Backend
11
{
12
public:
13
14
// Constructor
15
using AP_Camera_Backend::AP_Camera_Backend;
16
17
/* Do not allow copies */
18
CLASS_NO_COPY(AP_Camera_SoloGimbal);
19
20
// entry point to actually take a picture. returns true on success
21
bool trigger_pic() override;
22
23
// momentary switch to change camera between picture and video modes
24
void cam_mode_toggle() override;
25
26
// handle MAVLink messages from the camera
27
void handle_message(mavlink_channel_t chan, const mavlink_message_t &msg) override;
28
29
private:
30
31
GOPRO_CAPTURE_MODE gopro_capture_mode;
32
GOPRO_HEARTBEAT_STATUS gopro_status;
33
bool gopro_is_recording;
34
mavlink_channel_t heartbeat_channel;
35
};
36
37
#endif // AP_CAMERA_SOLOGIMBAL_ENABLED
38
39