32 #define AP_MOUNT_MAX_INSTANCES 1 37 class AP_Mount_SoloGimbal;
94 enum MAV_MOUNT_MODE
get_mode(uint8_t instance)
const;
99 void set_mode(uint8_t instance,
enum MAV_MOUNT_MODE mode);
115 void control(int32_t pitch_or_lat, int32_t roll_or_lon, int32_t yaw_or_alt,
enum MAV_MOUNT_MODE mount_mode) {
control(
_primary, pitch_or_lat, roll_or_lon, yaw_or_alt, mount_mode); }
116 void control(uint8_t instance, int32_t pitch_or_lat, int32_t roll_or_lon, int32_t yaw_or_alt,
enum MAV_MOUNT_MODE mount_mode);
120 void configure_msg(uint8_t instance, mavlink_message_t* msg);
124 void control_msg(uint8_t instance, mavlink_message_t* msg);
void configure_msg(mavlink_message_t *msg)
static const struct AP_Param::GroupInfo var_info[]
void handle_param_value(mavlink_message_t *msg)
static AP_SerialManager serial_manager
void set_roi_target(const struct Location &target_loc)
bool has_pan_control() const
void control_msg(mavlink_message_t *msg)
void set_angle_targets(float roll, float tilt, float pan)
void set_mode(enum MAV_MOUNT_MODE mode)
void status_msg(mavlink_channel_t chan)
Return mount status information.
AP_Mount(const AP_AHRS_TYPE &ahrs, const struct Location ¤t_loc)
enum MAV_MOUNT_MODE get_mode() const
#define AP_MOUNT_MAX_INSTANCES
void send_gimbal_report(mavlink_channel_t chan)
SToRM32 mount using MAVLink protocol.
friend class AP_Mount_SoloGimbal
RC_Channel manager, with EEPROM-backed storage of constants.
void control(int32_t pitch_or_lat, int32_t roll_or_lon, int32_t yaw_or_alt, enum MAV_MOUNT_MODE mount_mode)
void init(const AP_SerialManager &serial_manager)
struct Location _roi_target
AP_Vector3f _retract_angles
AP_Mount_Backend * _backends[AP_MOUNT_MAX_INSTANCES]
AP_Vector3f _neutral_angles
AP_Mount & operator=(const AP_Mount &)=delete
Common definitions and utility routines for the ArduPilot libraries.
const AP_AHRS_TYPE & _ahrs
AP_HAL::AnalogSource * chan
struct AP_Mount::mount_state state[AP_MOUNT_MAX_INSTANCES]
AP_Mount::MountType get_mount_type() const
const struct Location & _current_loc
void set_mode_to_default()
void handle_gimbal_report(mavlink_channel_t chan, mavlink_message_t *msg)