MCPcopy
hub / github.com/dronekit/dronekit-python / track

Method track

examples/drone_delivery/drone_delivery.py:219–225  ·  view source on GitHub ↗
(self, lat=None, lon=None)

Source from the content-addressed store, hash-verified

217
218 @cherrypy.expose
219 def track(self, lat=None, lon=None):
220 # Process POST request from Command
221 # Sending MAVLink packet with goto instructions
222 if(lat is not None and lon is not None):
223 self.drone.goto([lat, lon], True)
224
225 return self.templates.track(self.drone.get_location())
226
227
228# Connect to the Vehicle

Callers

nothing calls this directly

Calls 3

gotoMethod · 0.80
get_locationMethod · 0.80
trackMethod · 0.45

Tested by

no test coverage detected