Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/libraries/AP_Camera/AP_Camera_shareddefs.h
Views: 1798
#pragma once12// Camera related definitions required by both AP_Camera and AP_Mount are here3// this avoids issues that would occur if AP_Mount and AP_Camera included each other45#include <stdint.h>67// set zoom specified as a rate or percentage8// enumerators match MAVLink CAMERA_ZOOM_TYPE9enum class ZoomType : uint8_t {10RATE = 1, // zoom in, out or hold (zoom out = -1, hold = 0, zoom in = 1). Same as ZOOM_TYPE_CONTINUOUS11PCT = 2 // zoom to a percentage (from 0 to 100) of the full range. Same as ZOOM_TYPE_RANGE12};1314// set focus specified as a rate or percentage15// enumerators match MAVLink CAMERA_FOCUS_TYPE16enum class FocusType : uint8_t {17RATE = 1, // focus in, out or hold (focus in = -1, hold = 0, focus out = 1). Same as FOCUS_TYPE_CONTINUOUS18PCT = 2, // focus to a percentage (from 0 to 100) of the full range. Same as FOCUS_TYPE_RANGE19AUTO = 4 // focus automatically. Same as FOCUS_TYPE_AUTO20};2122// result type of set_focus. Assumptions are made that this23// enumeration can be cast directly to MAV_RESULT.24enum class SetFocusResult : uint8_t {25ACCEPTED = 0,26INVALID_PARAMETERS = 2, // supported but invalid parameters, like MAV_RESULT_DENIED27UNSUPPORTED = 3,28FAILED = 4,29};3031// tracking types when tracking an object in the video stream32enum class TrackingType : uint8_t {33TRK_NONE = 0, // tracking is inactive34TRK_POINT = 1, // tracking a point35TRK_RECTANGLE = 2 // tracking a rectangle36};3738// camera settings not normally used by the autopilot39enum class CameraSetting {40THERMAL_PALETTE = 0, // set thermal palette41THERMAL_GAIN = 1, // set thermal gain, value of 0:low gain, 1:high gain42THERMAL_RAW_DATA = 2, // enable/disable thermal raw data43};444546