Location in global frame, with altitude relative to the home location (a :py:class:`LocationGlobalRelative`). The latitude and longitude are relative to the `WGS84 coordinate system `_. The altitude is rela
(self)
| 957 | |
| 958 | @property |
| 959 | def global_relative_frame(self): |
| 960 | """ |
| 961 | Location in global frame, with altitude relative to the home location |
| 962 | (a :py:class:`LocationGlobalRelative`). |
| 963 | |
| 964 | The latitude and longitude are relative to the |
| 965 | `WGS84 coordinate system <http://en.wikipedia.org/wiki/World_Geodetic_System>`_. |
| 966 | The altitude is relative to :py:attr:`home location <Vehicle.home_location>`. |
| 967 | |
| 968 | This is accessed through the :py:attr:`Vehicle.location` attribute: |
| 969 | |
| 970 | .. code-block:: python |
| 971 | |
| 972 | print "Global Location (relative altitude): %s" % vehicle.location.global_relative_frame |
| 973 | print "Altitude relative to home_location: %s" % vehicle.location.global_relative_frame.alt |
| 974 | """ |
| 975 | return LocationGlobalRelative(self._lat, self._lon, self._relative_alt) |
| 976 | |
| 977 | |
| 978 | class Vehicle(HasObservers): |
nothing calls this directly
no test coverage detected