211 #if AP_MOUNT_MAX_INSTANCES > 1 391 #endif // AP_MOUNT_MAX_INSTANCES > 1 398 _current_loc(current_loc),
419 if (!
state[0]._type.configured()) {
428 bool primary_set =
false;
433 state[instance].
_mode = (
enum MAV_MOUNT_MODE)
state[instance]._default_mode.get();
442 #if AP_AHRS_NAVEKF_AVAILABLE 443 #if !HAL_MINIMIZE_FEATURES 448 #endif // HAL_MINIMIZE_FEATURES 449 #endif // AP_AHRS_NAVEKF_AVAILABLE 526 return MAV_MOUNT_MODE_RETRACT;
536 set_mode(instance, (
enum MAV_MOUNT_MODE)
state[instance]._default_mode.get());
586 void AP_Mount::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)
593 _backends[instance]->
control(pitch_or_lat, roll_or_lon, yaw_or_alt, mount_mode);
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)
virtual void handle_gimbal_report(mavlink_channel_t chan, mavlink_message_t *msg)
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.
virtual void control(int32_t pitch_or_lat, int32_t roll_or_lon, int32_t yaw_or_alt, MAV_MOUNT_MODE mount_mode)
friend class AP_Mount_SToRM32_serial
#define AP_GROUPINFO(name, idx, clazz, element, def)
AP_Mount(const AP_AHRS_TYPE &ahrs, const struct Location ¤t_loc)
enum MAV_MOUNT_MODE get_mode() const
virtual void control_msg(mavlink_message_t *msg)
#define AP_MOUNT_MAX_INSTANCES
virtual void set_mode(enum MAV_MOUNT_MODE mode)=0
virtual void status_msg(mavlink_channel_t chan)
void send_gimbal_report(mavlink_channel_t chan)
virtual void set_angle_targets(float roll, float tilt, float pan)
SToRM32 mount using MAVLink protocol.
A system for managing and storing variables that are of general interest to the system.
virtual void send_gimbal_report(mavlink_channel_t chan)
friend class AP_Mount_SoloGimbal
virtual void update_fast()
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)
virtual void configure_msg(mavlink_message_t *msg)
AP_Mount_Backend * _backends[AP_MOUNT_MAX_INSTANCES]
virtual void set_roi_target(const struct Location &target_loc)
Common definitions and utility routines for the ArduPilot libraries.
AP_HAL::AnalogSource * chan
struct AP_Mount::mount_state state[AP_MOUNT_MAX_INSTANCES]
virtual void handle_param_value(mavlink_message_t *msg)
AP_Mount::MountType get_mount_type() const
virtual void init(const AP_SerialManager &serial_manager)=0
void set_mode_to_default()
virtual bool has_pan_control() const =0
friend class AP_Mount_Alexmos
friend class AP_Mount_Servo
friend class AP_Mount_SToRM32
void handle_gimbal_report(mavlink_channel_t chan, mavlink_message_t *msg)
static bool function_assigned(SRV_Channel::Aux_servo_function_t function)
static void setup_object_defaults(const void *object_pointer, const struct GroupInfo *group_info)