コード例 #1
0
ファイル: control_land.cpp プロジェクト: CreedyNZ/ardusub
// land_run - runs the land controller
// should be called at 100hz or more
void Sub::land_run()
{
    if (land_with_gps) {
        land_gps_run();
    }else{
        land_nogps_run();
    }
}
コード例 #2
0
ファイル: control_land.cpp プロジェクト: rohde/ardupilot
// land_run - runs the land controller
// should be called at 100hz or more
void Copter::land_run()
{
    if (land_with_gps) {
        land_gps_run();
    }else{
        land_nogps_run();
    }
}
コード例 #3
0
// land_run - runs the land controller
// should be called at 100hz or more
void Copter::land_run()
{
    if (land_state.use_gps) {
#if PRECISION_LANDING == ENABLED
        if (land_state.use_precision) {
            land_precision_run();
        } else {
            land_gps_run();
        }
#else
        land_gps_run();
#endif
    }else{
        land_nogps_run();
    }
}