AP_Landing: unify singleton naming to _singleton and get_singleton()

This commit is contained in:
Tom Pittenger 2019-02-10 10:05:45 -08:00 committed by Tom Pittenger
parent cf2723458d
commit 1c33c3f50d
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ bool AP_Landing::type_slope_verify_land(const Location &prev_WP_loc, Location &n
// Check if the landing gear was deployed before landing
// If not - go around
AP_LandingGear *LG_inst = AP_LandingGear::instance();
AP_LandingGear *LG_inst = AP_LandingGear::get_singleton();
if (LG_inst != nullptr && !LG_inst->check_before_land()) {
type_slope_request_go_around();
gcs().send_text(MAV_SEVERITY_CRITICAL, "Landing gear was not deployed");