} // 定义在mavlink_helper.hMAVLINK_HELPERmavlink_status_t*mavlink_get_channel_status(uint8_tchan){#ifdefMAVLINK_EXTERNAL_RX_STATUS// No m_mavlink_status array defined in function,// has to be defined externally#elsestaticmavlink_status_tm_mavlink_status[MAVLINK_COMM_NUM_BUFFERS];#endifreturn&...
{ for (uint8_t i = 1; i < MAVLINK_COMM_NUM_BUFFERS; i++) { chan(i).setup_uart(serial_manager, AP_SerialManager::SerialProtocol_MAVLink, i); } } void GCS_MAVLINK::setup_uart(const AP_SerialManager& serial_manager, AP_SerialManager::SerialProtocol protocol, uint8_t instance) { AP...
static mavlink_status_t m_mavlink_status[MAVLINK_COMM_NUM_BUFFERS]; #endif return &m_mavlink_status[chan]; } #endif /* * Internal function to give access to the channel buffer for each channel */ #ifndef MAVLINK_GET_CHANNEL_BUFFER MAVLINK_HELPER mavlink_message_t* mavlink_get...
void GCS_MAVLINK::send_afs_message(MAV_SEVERITY severity, uint8_t timeout, AFS_SOLUTIONS *solutions, const prog_char_t *str, ...) { for (uint8_t i=0; i<MAVLINK_COMM_NUM_BUFFERS; i++) { if ((1U<= MAVLINK_NUM_NON_PAYLOAD_BYTES + MAVLINK_MSG_ID_STATUSTEXT_LEN) { char msg2[...
一:利用之前移植好的工程,在其基础上进行改动 1.将两个文件mavlink_usart_fifo.hmavlink_usart_fifo.c添加到工程里(都是关于缓冲区的底层串口加缓冲区函数) mavlink_usart_fifo.h #ifndef_USART_FIFO_H_//作者:恒久力行 qq:624668529 #define_USART_FIFO_H_ ...
lodepng mavlink common minimal standard checksum.h mavlink_conversions.h mavlink_get_info.h mavlink_helpers.h mavlink_sha256.h mavlink_types.h protocol.h nanojpeg stb Makefile fbg_fbdev.c fbg_fbdev.h fbgraphics.c fbgraphics.h font_16x16.c ...
static mavlink_message_t m_mavlink_buffer[MAVLINK_COMM_NUM_BUFFERS]; #endif return &m_mavlink_buffer[chan]; } #endif // MAVLINK_GET_CHANNEL_BUFFER /* Enable this option to check the length of each message.This allows invalid messages to be caught much sooner. Use if the transmission...
static mavlink_message_t m_mavlink_buffer[MAVLINK_COMM_NUM_BUFFERS]; #endif return &m_mavlink_buffer[chan]; } #endif // MAVLINK_GET_CHANNEL_BUFFER /* Enable this option to check the length of each message.This allows invalid messages to be caught much sooner. Use if the transmission...
If more are used, then the result will be * a stack overrun */ #ifndef MAVLINK_COMM_NUM_BUFFERS #if (defined linux) | (defined __linux) | (defined __MACH__) | (defined _WIN32) # define MAVLINK_COMM_NUM_BUFFERS 16 #else # define MAVLINK_COMM_NUM_BUFFERS 4 #endif #endif ...
static mavlink_status_t m_mavlink_status[MAVLINK_COMM_NUM_BUFFERS]; #endif return &m_mavlink_status[chan]; } #endif /* * Internal function to give access to the channel buffer for each channel */ #ifndef MAVLINK_GET_CHANNEL_BUFFER MAVLINK_HELPER mavlink_message_t* mavlink_get...