mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_LandingGear: make singleton a pointer
this allows common code for rover and sub
This commit is contained in:
parent
7fad72dacf
commit
2bab144eca
@ -35,8 +35,8 @@ public:
|
||||
AP_LandingGear &operator=(const AP_LandingGear&) = delete;
|
||||
|
||||
// get singleton instance
|
||||
static AP_LandingGear &instance(void) {
|
||||
return *_singleton;
|
||||
static AP_LandingGear *instance(void) {
|
||||
return _singleton;
|
||||
}
|
||||
|
||||
// Gear command modes
|
||||
|
Loading…
Reference in New Issue
Block a user