AP_LandingGear: make singleton a pointer

this allows common code for rover and sub
This commit is contained in:
Andrew Tridgell 2018-11-09 11:03:11 +11:00
parent 7fad72dacf
commit 2bab144eca

View File

@ -35,8 +35,8 @@ public:
AP_LandingGear &operator=(const AP_LandingGear&) = delete; AP_LandingGear &operator=(const AP_LandingGear&) = delete;
// get singleton instance // get singleton instance
static AP_LandingGear &instance(void) { static AP_LandingGear *instance(void) {
return *_singleton; return _singleton;
} }
// Gear command modes // Gear command modes