APM:Libraries
Public Member Functions | Private Member Functions | Private Attributes | List of all members
AP_Mount_SToRM32 Class Reference

#include <AP_Mount_SToRM32.h>

Inheritance diagram for AP_Mount_SToRM32:
[legend]
Collaboration diagram for AP_Mount_SToRM32:
[legend]

Public Member Functions

 AP_Mount_SToRM32 (AP_Mount &frontend, AP_Mount::mount_state &state, uint8_t instance)
 
virtual void init (const AP_SerialManager &serial_manager)
 
virtual void update ()
 
virtual bool has_pan_control () const
 
virtual void set_mode (enum MAV_MOUNT_MODE mode)
 
virtual void status_msg (mavlink_channel_t chan)
 
- Public Member Functions inherited from AP_Mount_Backend
 AP_Mount_Backend (AP_Mount &frontend, AP_Mount::mount_state &state, uint8_t instance)
 
virtual ~AP_Mount_Backend (void)
 
virtual void update_fast ()
 
virtual void set_angle_targets (float roll, float tilt, float pan)
 
virtual void set_roi_target (const struct Location &target_loc)
 
virtual void control (int32_t pitch_or_lat, int32_t roll_or_lon, int32_t yaw_or_alt, MAV_MOUNT_MODE mount_mode)
 
virtual void configure_msg (mavlink_message_t *msg)
 
virtual void control_msg (mavlink_message_t *msg)
 
virtual void handle_gimbal_report (mavlink_channel_t chan, mavlink_message_t *msg)
 
virtual void handle_param_value (mavlink_message_t *msg)
 
virtual void send_gimbal_report (mavlink_channel_t chan)
 

Private Member Functions

void find_gimbal ()
 
void send_do_mount_control (float pitch_deg, float roll_deg, float yaw_deg, enum MAV_MOUNT_MODE mount_mode)
 

Private Attributes

bool _initialised
 
uint8_t _sysid
 
uint8_t _compid
 
mavlink_channel_t _chan
 
uint32_t _last_send
 

Additional Inherited Members

- Protected Member Functions inherited from AP_Mount_Backend
void update_targets_from_rc ()
 
int32_t angle_input (RC_Channel *rc, int16_t angle_min, int16_t angle_max)
 
float angle_input_rad (RC_Channel *rc, int16_t angle_min, int16_t angle_max)
 
void calc_angle_to_location (const struct Location &target, Vector3f &angles_to_target_rad, bool calc_tilt, bool calc_pan, bool relative_pan=true)
 
MAV_MOUNT_MODE get_mode (void) const
 
- Protected Attributes inherited from AP_Mount_Backend
AP_Mount_frontend
 
AP_Mount::mount_state_state
 
uint8_t _instance
 
Vector3f _angle_ef_target_rad
 

Detailed Description

Definition at line 20 of file AP_Mount_SToRM32.h.

Constructor & Destructor Documentation

◆ AP_Mount_SToRM32()

AP_Mount_SToRM32::AP_Mount_SToRM32 ( AP_Mount frontend,
AP_Mount::mount_state state,
uint8_t  instance 
)

Definition at line 7 of file AP_Mount_SToRM32.cpp.

Member Function Documentation

◆ find_gimbal()

void AP_Mount_SToRM32::find_gimbal ( )
private

Definition at line 108 of file AP_Mount_SToRM32.cpp.

Referenced by init(), and update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ has_pan_control()

bool AP_Mount_SToRM32::has_pan_control ( ) const
virtual

Implements AP_Mount_Backend.

Definition at line 82 of file AP_Mount_SToRM32.cpp.

Referenced by init().

Here is the caller graph for this function:

◆ init()

virtual void AP_Mount_SToRM32::init ( const AP_SerialManager serial_manager)
inlinevirtual

Implements AP_Mount_Backend.

Definition at line 28 of file AP_Mount_SToRM32.h.

Here is the call graph for this function:

◆ send_do_mount_control()

void AP_Mount_SToRM32::send_do_mount_control ( float  pitch_deg,
float  roll_deg,
float  yaw_deg,
enum MAV_MOUNT_MODE  mount_mode 
)
private

Definition at line 126 of file AP_Mount_SToRM32.cpp.

Referenced by init(), and update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_mode()

void AP_Mount_SToRM32::set_mode ( enum MAV_MOUNT_MODE  mode)
virtual

Implements AP_Mount_Backend.

Definition at line 89 of file AP_Mount_SToRM32.cpp.

Referenced by init().

Here is the caller graph for this function:

◆ status_msg()

void AP_Mount_SToRM32::status_msg ( mavlink_channel_t  chan)
virtual

Reimplemented from AP_Mount_Backend.

Definition at line 101 of file AP_Mount_SToRM32.cpp.

Referenced by init().

Here is the caller graph for this function:

◆ update()

void AP_Mount_SToRM32::update ( void  )
virtual

Implements AP_Mount_Backend.

Definition at line 17 of file AP_Mount_SToRM32.cpp.

Referenced by init().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _chan

mavlink_channel_t AP_Mount_SToRM32::_chan
private

Definition at line 54 of file AP_Mount_SToRM32.h.

Referenced by find_gimbal(), and send_do_mount_control().

◆ _compid

uint8_t AP_Mount_SToRM32::_compid
private

Definition at line 53 of file AP_Mount_SToRM32.h.

Referenced by find_gimbal(), and send_do_mount_control().

◆ _initialised

bool AP_Mount_SToRM32::_initialised
private

Definition at line 51 of file AP_Mount_SToRM32.h.

Referenced by find_gimbal(), send_do_mount_control(), set_mode(), and update().

◆ _last_send

uint32_t AP_Mount_SToRM32::_last_send
private

Definition at line 55 of file AP_Mount_SToRM32.h.

Referenced by send_do_mount_control(), and update().

◆ _sysid

uint8_t AP_Mount_SToRM32::_sysid
private

Definition at line 52 of file AP_Mount_SToRM32.h.

Referenced by find_gimbal(), and send_do_mount_control().


The documentation for this class was generated from the following files: