2023-04-18 22:06:16 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Camera related definitions required by both AP_Camera and AP_Mount are here
|
|
|
|
// this avoids issues that would occur if AP_Mount and AP_Camera included each other
|
|
|
|
|
2023-04-24 09:23:07 -03:00
|
|
|
#include <stdint.h>
|
2023-04-18 22:06:16 -03:00
|
|
|
|
|
|
|
// set zoom specified as a rate or percentage
|
|
|
|
// enumerators match MAVLink CAMERA_ZOOM_TYPE
|
|
|
|
enum class ZoomType : uint8_t {
|
|
|
|
RATE = 1, // zoom in, out or hold (zoom out = -1, hold = 0, zoom in = 1). Same as ZOOM_TYPE_CONTINUOUS
|
|
|
|
PCT = 2 // zoom to a percentage (from 0 to 100) of the full range. Same as ZOOM_TYPE_RANGE
|
|
|
|
};
|
|
|
|
|
2023-04-24 09:23:07 -03:00
|
|
|
// set focus specified as a rate or percentage
|
|
|
|
// enumerators match MAVLink CAMERA_FOCUS_TYPE
|
|
|
|
enum class FocusType : uint8_t {
|
|
|
|
RATE = 1, // focus in, out or hold (focus in = -1, hold = 0, focus out = 1). Same as FOCUS_TYPE_CONTINUOUS
|
|
|
|
PCT = 2, // focus to a percentage (from 0 to 100) of the full range. Same as FOCUS_TYPE_RANGE
|
|
|
|
AUTO = 4 // focus automatically. Same as FOCUS_TYPE_AUTO
|
|
|
|
};
|
2023-04-28 21:39:05 -03:00
|
|
|
|
2023-06-21 03:03:39 -03:00
|
|
|
// result type of set_focus. Assumptions are made that this
|
|
|
|
// enumeration can be cast directly to MAV_RESULT.
|
|
|
|
enum class SetFocusResult : uint8_t {
|
|
|
|
ACCEPTED = 0,
|
|
|
|
INVALID_PARAMETERS = 2, // supported but invalid parameters, like MAV_RESULT_DENIED
|
|
|
|
UNSUPPORTED = 3,
|
|
|
|
FAILED = 4,
|
|
|
|
};
|
|
|
|
|
2023-04-28 21:39:05 -03:00
|
|
|
// tracking types when tracking an object in the video stream
|
|
|
|
enum class TrackingType : uint8_t {
|
2023-05-10 02:09:33 -03:00
|
|
|
TRK_NONE = 0, // tracking is inactive
|
|
|
|
TRK_POINT = 1, // tracking a point
|
|
|
|
TRK_RECTANGLE = 2 // tracking a rectangle
|
2023-04-28 21:39:05 -03:00
|
|
|
};
|
2023-06-21 03:03:39 -03:00
|
|
|
|