Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/dronekit/dronekit-python
/ get_location
Method
get_location
examples/drone_delivery/drone_delivery.py:143–144 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
141
self.vehicle.flush()
142
143
def
get_location(self):
144
return
[self.current_location.lat, self.current_location.lon]
145
146
def
location_callback(self, vehicle, name, location):
147
if
location.global_relative_frame.alt is not None:
Callers
3
command
Method · 0.80
vehicle
Method · 0.80
track
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected