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

Method change_mode

examples/drone_delivery/drone_delivery.py:116–122  ·  view source on GitHub ↗
(self, mode)

Source from the content-addressed store, hash-verified

114 cherrypy.engine.start()
115
116 def change_mode(self, mode):
117 self._log("Changing to mode: {0}".format(mode))
118
119 self.vehicle.mode = VehicleMode(mode)
120 while self.vehicle.mode.name != mode:
121 self._log(' ... polled mode: {0}'.format(mode))
122 time.sleep(1)
123
124 def goto(self, location, relative=None):
125 self._log("Goto: {0}, {1}".format(location, self.altitude))

Callers 1

launchMethod · 0.95

Calls 2

_logMethod · 0.95
VehicleModeClass · 0.90

Tested by

no test coverage detected