當前位置: 首頁>>代碼示例>>C++>>正文


C++ FOR_EACH_BACKEND函數代碼示例

本文整理匯總了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());
    }

}
開發者ID:LuisG01,項目名稱:ardupilot,代碼行數:14,代碼來源:DataFlash.cpp

示例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;
    }
}
開發者ID:LuisG01,項目名稱:ardupilot,代碼行數:17,代碼來源:DataFlash.cpp

示例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;
    }
}
開發者ID:highvoltageDC,項目名稱:ardupilot,代碼行數:17,代碼來源:AP_Logger.cpp

示例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));
}
開發者ID:Blake51,項目名稱:ardupilot,代碼行數:5,代碼來源:DataFlash.cpp

示例5: FOR_EACH_BACKEND

void AP_Logger::Prep() {
    FOR_EACH_BACKEND(Prep());
}
開發者ID:highvoltageDC,項目名稱:ardupilot,代碼行數:3,代碼來源:AP_Logger.cpp

示例6: handle_log_send

void AP_Logger::periodic_tasks() {
    handle_log_send();
    FOR_EACH_BACKEND(periodic_tasks());
}
開發者ID:highvoltageDC,項目名稱:ardupilot,代碼行數:4,代碼來源:AP_Logger.cpp

示例7: FOR_EACH_BACKEND

void DataFlash_Class::Log_Write_Mode(uint8_t mode)
{
    FOR_EACH_BACKEND(Log_Write_Mode(mode));
}
開發者ID:SovietUnion1997,項目名稱:PhenixPro_Devkit,代碼行數:4,代碼來源:DataFlash.cpp


注:本文中的FOR_EACH_BACKEND函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。