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_Params.h
Views: 1798
1
#pragma once
2
3
#include <AP_Param/AP_Param.h>
4
#include <AP_Math/AP_Math.h>
5
6
class AP_Camera_Params {
7
8
public:
9
10
static const struct AP_Param::GroupInfo var_info[];
11
12
AP_Camera_Params(void);
13
14
/* Do not allow copies */
15
CLASS_NO_COPY(AP_Camera_Params);
16
17
AP_Int8 type; // camera type (see CameraType enum)
18
AP_Float trigger_duration; // duration in seconds that the camera shutter is held open
19
AP_Int16 servo_on_pwm; // PWM value to move servo to when shutter is activated
20
AP_Int16 servo_off_pwm; // PWM value to move servo to when shutter is deactivated
21
AP_Float trigg_dist; // distance between trigger points (meters)
22
AP_Int8 relay_on; // relay value to trigger camera
23
AP_Float interval_min; // minimum time (in seconds) between shots required by camera
24
AP_Int8 options; // whether to start recording when armed and stop when disarmed
25
AP_Int8 mount_instance; // mount instance to which camera is associated with
26
AP_Float hfov; // horizontal field of view in degrees
27
AP_Float vfov; // vertical field of view in degrees
28
29
// pin number for accurate camera feedback messages
30
AP_Int8 feedback_pin;
31
AP_Int8 feedback_polarity;
32
};
33
34