MCPcopy
hub / github.com/dronesploit/dronesploit / _send_udp_command

Method _send_udp_command

dronesploit/drones/dji.py:72–79  ·  view source on GitHub ↗
(self, command)

Source from the content-addressed store, hash-verified

70 return r
71
72 def _send_udp_command(self, command):
73 msg = TelloModule.fly_params['commands'].get(command)
74 if msg is not None:
75 self.logger.info(msg[0])
76 r = self.send_command(command)
77 self._feedback(r, msg[1])
78 return r
79 raise Exception("Bad UDP command")
80

Callers 4

runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 1

send_commandMethod · 0.80

Tested by

no test coverage detected