2 changed files with 38 additions and 1 deletions
@ -0,0 +1,18 @@ |
|||||||
|
#include <AP_Vehicle/AP_Vehicle.h> |
||||||
|
|
||||||
|
AP_Vehicle *AP_Vehicle::_singleton = nullptr; |
||||||
|
|
||||||
|
AP_Vehicle *AP_Vehicle::get_singleton() |
||||||
|
{ |
||||||
|
return _singleton; |
||||||
|
} |
||||||
|
|
||||||
|
namespace AP { |
||||||
|
|
||||||
|
AP_Vehicle *vehicle() |
||||||
|
{ |
||||||
|
return AP_Vehicle::get_singleton(); |
||||||
|
} |
||||||
|
|
||||||
|
}; |
||||||
|
|
Loading…
Reference in new issue