当前位置: 首页>>代码示例>>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;未经允许,请勿转载。