本文整理匯總了C++中FOR_EACH_BACKEND函數的典型用法代碼示例。如果您正苦於以下問題:C++ FOR_EACH_BACKEND函數的具體用法?C++ FOR_EACH_BACKEND怎麽用?C++ FOR_EACH_BACKEND使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了FOR_EACH_BACKEND函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: FOR_EACH_BACKEND
void DataFlash_Class::set_vehicle_armed(const bool armed_state)
{
if (armed_state == _armed) {
// no change in status
return;
}
_armed = armed_state;
if (!_armed) {
// went from armed to disarmed
FOR_EACH_BACKEND(vehicle_was_disarmed());
}
}
示例2: switch
void DataFlash_Class::handle_mavlink_msg(GCS_MAVLINK &link, mavlink_message_t* msg)
{
switch (msg->msgid) {
case MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS:
FOR_EACH_BACKEND(remote_log_block_status_msg(link.get_chan(), msg));
break;
case MAVLINK_MSG_ID_LOG_REQUEST_LIST:
/* fall through */
case MAVLINK_MSG_ID_LOG_REQUEST_DATA:
/* fall through */
case MAVLINK_MSG_ID_LOG_ERASE:
/* fall through */
case MAVLINK_MSG_ID_LOG_REQUEST_END:
handle_log_message(link, msg);
break;
}
}
示例3: switch
void AP_Logger::handle_mavlink_msg(GCS_MAVLINK &link, mavlink_message_t* msg)
{
switch (msg->msgid) {
case MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS:
FOR_EACH_BACKEND(remote_log_block_status_msg(link.get_chan(), msg));
break;
case MAVLINK_MSG_ID_LOG_REQUEST_LIST:
FALLTHROUGH;
case MAVLINK_MSG_ID_LOG_REQUEST_DATA:
FALLTHROUGH;
case MAVLINK_MSG_ID_LOG_ERASE:
FALLTHROUGH;
case MAVLINK_MSG_ID_LOG_REQUEST_END:
handle_log_message(link, msg);
break;
}
}
示例4: FOR_EACH_BACKEND
// for DataFlash_MAVLink
void DataFlash_Class::remote_log_block_status_msg(mavlink_channel_t chan,
mavlink_message_t* msg) {
FOR_EACH_BACKEND(remote_log_block_status_msg(chan, msg));
}
示例5: FOR_EACH_BACKEND
void AP_Logger::Prep() {
FOR_EACH_BACKEND(Prep());
}
示例6: handle_log_send
void AP_Logger::periodic_tasks() {
handle_log_send();
FOR_EACH_BACKEND(periodic_tasks());
}
示例7: FOR_EACH_BACKEND
void DataFlash_Class::Log_Write_Mode(uint8_t mode)
{
FOR_EACH_BACKEND(Log_Write_Mode(mode));
}