PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <mavlink_log_handler.h>
Public Member Functions | |
MavlinkLogHandler (Mavlink *mavlink) | |
void | handle_message (const mavlink_message_t *msg) |
void | send (const hrt_abstime t) |
Handle sending of messages. More... | |
unsigned | get_size () |
Private Member Functions | |
void | _log_message (const mavlink_message_t *msg) |
void | _log_request_list (const mavlink_message_t *msg) |
void | _log_request_data (const mavlink_message_t *msg) |
void | _log_request_erase (const mavlink_message_t *msg) |
void | _log_request_end (const mavlink_message_t *msg) |
size_t | _log_send_listing () |
size_t | _log_send_data () |
Private Attributes | |
LogListHelper * | _pLogHandlerHelper |
Mavlink * | _mavlink |
Definition at line 91 of file mavlink_log_handler.h.
MavlinkLogHandler::MavlinkLogHandler | ( | Mavlink * | mavlink | ) |
Definition at line 82 of file mavlink_log_handler.cpp.
|
private |
|
private |
Definition at line 192 of file mavlink_log_handler.cpp.
References _pLogHandlerHelper, LogListHelper::current_log_data_offset, LogListHelper::current_log_data_remaining, LogListHelper::current_log_filename, LogListHelper::current_log_index, LogListHelper::current_log_size, LogListHelper::current_status, LogListHelper::get_entry(), LogListHelper::log_count, LogListHelper::LOG_HANDLER_IDLE, LogListHelper::LOG_HANDLER_SENDING_DATA, LogListHelper::open_for_transmit(), and PX4LOG_WARN.
Referenced by handle_message().
|
private |
Definition at line 265 of file mavlink_log_handler.cpp.
References _pLogHandlerHelper, and PX4LOG_WARN.
Referenced by handle_message().
|
private |
Definition at line 248 of file mavlink_log_handler.cpp.
References _pLogHandlerHelper, LogListHelper::delete_all(), and kLogRoot.
Referenced by handle_message().
|
private |
Definition at line 153 of file mavlink_log_handler.cpp.
References _pLogHandlerHelper, LogListHelper::current_status, LogListHelper::last_entry, LogListHelper::log_count, LogListHelper::LOG_HANDLER_IDLE, LogListHelper::LOG_HANDLER_LISTING, LogListHelper::next_entry, and PX4LOG_WARN.
Referenced by handle_message().
|
private |
Definition at line 309 of file mavlink_log_handler.cpp.
References _mavlink, _pLogHandlerHelper, LogListHelper::current_log_data_offset, LogListHelper::current_log_data_remaining, LogListHelper::current_log_index, LogListHelper::current_status, Mavlink::get_channel(), LogListHelper::get_log_data(), and LogListHelper::LOG_HANDLER_IDLE.
Referenced by send().
|
private |
Definition at line 277 of file mavlink_log_handler.cpp.
References _mavlink, _pLogHandlerHelper, LogListHelper::current_status, Mavlink::get_channel(), LogListHelper::get_entry(), LogListHelper::last_entry, LogListHelper::log_count, LogListHelper::LOG_HANDLER_IDLE, LogListHelper::next_entry, and PX4LOG_WARN.
Referenced by send().
unsigned MavlinkLogHandler::get_size | ( | ) |
Definition at line 114 of file mavlink_log_handler.cpp.
References _pLogHandlerHelper, LogListHelper::current_status, LogListHelper::LOG_HANDLER_LISTING, and LogListHelper::LOG_HANDLER_SENDING_DATA.
Referenced by send().
void MavlinkLogHandler::handle_message | ( | const mavlink_message_t * | msg | ) |
Definition at line 91 of file mavlink_log_handler.cpp.
References _log_request_data(), _log_request_end(), _log_request_erase(), and _log_request_list().
Referenced by MavlinkReceiver::Run().
void MavlinkLogHandler::send | ( | const hrt_abstime | t | ) |
Handle sending of messages.
Call this regularly at a fixed frequency.
t | current time |
Definition at line 132 of file mavlink_log_handler.cpp.
References _log_send_data(), _log_send_listing(), _mavlink, _pLogHandlerHelper, LogListHelper::current_status, Mavlink::get_free_tx_buf(), get_size(), LogListHelper::LOG_HANDLER_LISTING, LogListHelper::LOG_HANDLER_SENDING_DATA, and MAX_BYTES_SEND.
Referenced by MavlinkReceiver::Run().
|
private |
Definition at line 118 of file mavlink_log_handler.h.
Referenced by _log_send_data(), _log_send_listing(), and send().
|
private |
Definition at line 117 of file mavlink_log_handler.h.
Referenced by _log_request_data(), _log_request_end(), _log_request_erase(), _log_request_list(), _log_send_data(), _log_send_listing(), get_size(), and send().