2022-08-30 08:15:10 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_Param/AP_Param.h>
|
|
|
|
#include <AP_Math/AP_Math.h>
|
|
|
|
|
|
|
|
class AP_Mount_Params {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
|
|
|
|
AP_Mount_Params(void);
|
|
|
|
|
|
|
|
/* Do not allow copies */
|
2022-09-30 06:50:43 -03:00
|
|
|
CLASS_NO_COPY(AP_Mount_Params);
|
2022-08-30 08:15:10 -03:00
|
|
|
|
2023-06-20 04:03:30 -03:00
|
|
|
AP_Int8 type; // mount type (see Mount::Type enum)
|
2022-08-30 08:15:10 -03:00
|
|
|
AP_Int8 default_mode; // default mode on startup and when control is returned from autopilot
|
|
|
|
AP_Int16 rc_rate_max; // Pilot rate control's maximum rate. Set to zero to use angle control
|
|
|
|
AP_Int16 roll_angle_min; // roll angle min in degrees
|
|
|
|
AP_Int16 roll_angle_max; // roll angle max in degrees
|
|
|
|
AP_Int16 pitch_angle_min; // pitch angle min in degrees
|
|
|
|
AP_Int16 pitch_angle_max; // pitch angle max in degrees
|
|
|
|
AP_Int16 yaw_angle_min; // yaw angle min in degrees
|
|
|
|
AP_Int16 yaw_angle_max; // yaw angle max in degrees
|
|
|
|
|
|
|
|
AP_Vector3f retract_angles; // retracted position in degrees. vector.x = roll vector.y = pitch, vector.z=yaw
|
|
|
|
AP_Vector3f neutral_angles; // neutral position in degrees. vector.x = roll vector.y = pitch, vector.z=yaw
|
|
|
|
|
|
|
|
AP_Float roll_stb_lead; // roll lead control gain (only used by servo backend)
|
|
|
|
AP_Float pitch_stb_lead; // pitch lead control gain (only used by servo backend)
|
2023-04-20 05:22:59 -03:00
|
|
|
AP_Int8 sysid_default; // target sysid for mount to follow
|
2023-06-21 04:24:06 -03:00
|
|
|
AP_Int32 dev_id; // Device id taking into account bus
|
2024-03-19 07:32:45 -03:00
|
|
|
AP_Int8 options; // mount options bitmask
|
2022-08-30 08:15:10 -03:00
|
|
|
};
|