From 0d77cfb6c303913fb6f985efc26e89358e6954ee Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 1 Aug 2017 17:10:23 +1000 Subject: [PATCH] SITL: method to return current vehicle location --- libraries/SITL/SIM_Aircraft.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/SITL/SIM_Aircraft.h b/libraries/SITL/SIM_Aircraft.h index c5f7e10c66..9acbd84feb 100644 --- a/libraries/SITL/SIM_Aircraft.h +++ b/libraries/SITL/SIM_Aircraft.h @@ -113,6 +113,8 @@ public: virtual float gross_mass() const { return mass; } + const Location &get_location() const { return location; } + protected: SITL *sitl; Location home;