// 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();
    }
}
Exemplo n.º 2
0
// 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();
    }
}
Exemplo n.º 3
0
// 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();
    }
}