|
APM:Libraries
|
#include <AP_Mount_SToRM32_serial.h>
Classes | |
| struct | cmd_set_angles_struct |
| union | SToRM32_reply |
| struct | SToRM32_reply_ack_struct |
| struct | SToRM32_reply_data_struct |
Public Member Functions | |
| AP_Mount_SToRM32_serial (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 Types | |
| enum | ReplyType { ReplyType_UNKNOWN = 0, ReplyType_DATA, ReplyType_ACK } |
Private Member Functions | |
| void | send_target_angles (float pitch_deg, float roll_deg, float yaw_deg) |
| void | get_angles () |
| void | read_incoming () |
| void | parse_reply () |
| uint8_t | get_reply_size (ReplyType reply_type) |
| bool | can_send (bool with_control) |
Private Attributes | |
| AP_HAL::UARTDriver * | _port |
| bool | _initialised |
| uint32_t | _last_send |
| uint8_t | _reply_length |
| uint8_t | _reply_counter |
| ReplyType | _reply_type |
| union PACKED AP_Mount_SToRM32_serial::SToRM32_reply | _buffer |
| Vector3l | _current_angle |
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 |
Definition at line 18 of file AP_Mount_SToRM32_serial.h.
|
private |
| Enumerator | |
|---|---|
| ReplyType_UNKNOWN | |
| ReplyType_DATA | |
| ReplyType_ACK | |
Definition at line 52 of file AP_Mount_SToRM32_serial.h.
| AP_Mount_SToRM32_serial::AP_Mount_SToRM32_serial | ( | AP_Mount & | frontend, |
| AP_Mount::mount_state & | state, | ||
| uint8_t | instance | ||
| ) |
Definition at line 9 of file AP_Mount_SToRM32_serial.cpp.
|
private |
Definition at line 138 of file AP_Mount_SToRM32_serial.cpp.
Referenced by update().
|
private |
Definition at line 193 of file AP_Mount_SToRM32_serial.cpp.
Referenced by update().
|
private |
Definition at line 207 of file AP_Mount_SToRM32_serial.cpp.
Referenced by read_incoming(), and update().
|
virtual |
Implements AP_Mount_Backend.
Definition at line 113 of file AP_Mount_SToRM32_serial.cpp.
|
virtual |
Implements AP_Mount_Backend.
Definition at line 20 of file AP_Mount_SToRM32_serial.cpp.
|
private |
Definition at line 261 of file AP_Mount_SToRM32_serial.cpp.
Referenced by read_incoming().
|
private |
Definition at line 221 of file AP_Mount_SToRM32_serial.cpp.
Referenced by update().
|
private |
Definition at line 148 of file AP_Mount_SToRM32_serial.cpp.
Referenced by update().
|
virtual |
Implements AP_Mount_Backend.
Definition at line 120 of file AP_Mount_SToRM32_serial.cpp.
Referenced by init().
|
virtual |
Reimplemented from AP_Mount_Backend.
Definition at line 132 of file AP_Mount_SToRM32_serial.cpp.
|
virtual |
Implements AP_Mount_Backend.
Definition at line 31 of file AP_Mount_SToRM32_serial.cpp.
|
private |
Referenced by parse_reply(), and read_incoming().
|
private |
Definition at line 150 of file AP_Mount_SToRM32_serial.h.
Referenced by parse_reply(), and status_msg().
|
private |
Definition at line 135 of file AP_Mount_SToRM32_serial.h.
Referenced by get_angles(), init(), send_target_angles(), set_mode(), and update().
|
private |
Definition at line 136 of file AP_Mount_SToRM32_serial.h.
Referenced by send_target_angles(), and update().
|
private |
Definition at line 133 of file AP_Mount_SToRM32_serial.h.
Referenced by can_send(), get_angles(), init(), read_incoming(), and send_target_angles().
|
private |
Definition at line 139 of file AP_Mount_SToRM32_serial.h.
Referenced by read_incoming(), and update().
|
private |
Definition at line 138 of file AP_Mount_SToRM32_serial.h.
Referenced by read_incoming(), and update().
|
private |
Definition at line 140 of file AP_Mount_SToRM32_serial.h.
Referenced by can_send(), parse_reply(), read_incoming(), and update().
1.8.13