APM:Libraries
|
#include <AP_Mount_Backend.h>
Public Member Functions | |
AP_Mount_Backend (AP_Mount &frontend, AP_Mount::mount_state &state, uint8_t instance) | |
virtual | ~AP_Mount_Backend (void) |
virtual void | init (const AP_SerialManager &serial_manager)=0 |
virtual void | update ()=0 |
virtual void | update_fast () |
virtual bool | has_pan_control () const =0 |
virtual void | set_mode (enum MAV_MOUNT_MODE mode)=0 |
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 | status_msg (mavlink_channel_t chan) |
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) |
Protected Member Functions | |
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 | |
AP_Mount & | _frontend |
AP_Mount::mount_state & | _state |
uint8_t | _instance |
Vector3f | _angle_ef_target_rad |
Definition at line 25 of file AP_Mount_Backend.h.
|
inline |
Definition at line 29 of file AP_Mount_Backend.h.
|
inlinevirtual |
|
protected |
Definition at line 122 of file AP_Mount_Backend.cpp.
Referenced by angle_input_rad(), and send_gimbal_report().
|
protected |
Definition at line 129 of file AP_Mount_Backend.cpp.
Referenced by send_gimbal_report(), and update_targets_from_rc().
|
protected |
Definition at line 135 of file AP_Mount_Backend.cpp.
Referenced by send_gimbal_report(), AP_Mount_SToRM32_serial::update(), AP_Mount_SToRM32::update(), AP_Mount_Servo::update(), and AP_Mount_Alexmos::update().
|
virtual |
Definition at line 28 of file AP_Mount_Backend.cpp.
Referenced by AP_Mount::configure_msg(), and update_fast().
|
virtual |
Definition at line 45 of file AP_Mount_Backend.cpp.
Referenced by AP_Mount::control(), control_msg(), and update_fast().
|
virtual |
Definition at line 37 of file AP_Mount_Backend.cpp.
Referenced by AP_Mount::control_msg(), and update_fast().
|
inlineprotected |
Definition at line 93 of file AP_Mount_Backend.h.
Referenced by AP_Mount_SToRM32_serial::update(), AP_Mount_SToRM32::update(), AP_Mount_Servo::update(), and AP_Mount_Alexmos::update().
|
inlinevirtual |
Definition at line 72 of file AP_Mount_Backend.h.
Referenced by AP_Mount::handle_gimbal_report().
|
inlinevirtual |
Definition at line 75 of file AP_Mount_Backend.h.
Referenced by AP_Mount::handle_param_value().
|
pure virtual |
Implemented in AP_Mount_Alexmos, AP_Mount_Servo, AP_Mount_SToRM32, and AP_Mount_SToRM32_serial.
Referenced by AP_Mount::has_pan_control(), and update_fast().
|
pure virtual |
Implemented in AP_Mount_Alexmos, AP_Mount_Servo, AP_Mount_SToRM32, and AP_Mount_SToRM32_serial.
Referenced by AP_Mount::init(), and ~AP_Mount_Backend().
|
inlinevirtual |
Definition at line 78 of file AP_Mount_Backend.h.
Referenced by AP_Mount::send_gimbal_report().
|
virtual |
Definition at line 6 of file AP_Mount_Backend.cpp.
Referenced by control(), AP_Mount::set_angle_targets(), and update_fast().
|
pure virtual |
Implemented in AP_Mount_Alexmos, AP_Mount_Servo, AP_Mount_SToRM32, and AP_Mount_SToRM32_serial.
Referenced by configure_msg(), AP_Mount::set_mode(), and update_fast().
|
virtual |
Definition at line 18 of file AP_Mount_Backend.cpp.
Referenced by control(), AP_Mount::set_roi_target(), and update_fast().
|
inlinevirtual |
Reimplemented in AP_Mount_Alexmos, AP_Mount_Servo, AP_Mount_SToRM32, and AP_Mount_SToRM32_serial.
Definition at line 69 of file AP_Mount_Backend.h.
Referenced by AP_Mount::status_msg().
|
pure virtual |
Implemented in AP_Mount_Alexmos, AP_Mount_Servo, AP_Mount_SToRM32, and AP_Mount_SToRM32_serial.
Referenced by AP_Mount::update(), and ~AP_Mount_Backend().
|
inlinevirtual |
Definition at line 45 of file AP_Mount_Backend.h.
Referenced by AP_Mount::update_fast().
|
protected |
Definition at line 84 of file AP_Mount_Backend.cpp.
Referenced by send_gimbal_report(), AP_Mount_SToRM32_serial::update(), AP_Mount_SToRM32::update(), AP_Mount_Servo::update(), and AP_Mount_Alexmos::update().
|
protected |
Definition at line 98 of file AP_Mount_Backend.h.
Referenced by set_angle_targets(), AP_Mount_Servo::stabilize(), AP_Mount_SToRM32::status_msg(), AP_Mount_SToRM32_serial::update(), AP_Mount_SToRM32::update(), AP_Mount_Servo::update(), AP_Mount_Alexmos::update(), and update_targets_from_rc().
|
protected |
Definition at line 95 of file AP_Mount_Backend.h.
Referenced by calc_angle_to_location(), control(), get_mode(), set_angle_targets(), set_roi_target(), AP_Mount_Servo::stabilize(), and update_targets_from_rc().
|
protected |
Definition at line 97 of file AP_Mount_Backend.h.
Referenced by control(), get_mode(), AP_Mount_Servo::init(), set_angle_targets(), and set_roi_target().
|
protected |
Definition at line 96 of file AP_Mount_Backend.h.
Referenced by control_msg(), AP_Mount_SToRM32_serial::init(), AP_Mount_SToRM32_serial::set_mode(), AP_Mount_SToRM32::set_mode(), AP_Mount_Servo::set_mode(), AP_Mount_Alexmos::set_mode(), set_roi_target(), AP_Mount_Servo::stabilize(), AP_Mount_SToRM32_serial::update(), AP_Mount_SToRM32::update(), AP_Mount_Servo::update(), AP_Mount_Alexmos::update(), and update_targets_from_rc().