| 60 | path = "command/dji/tello" |
| 61 | |
| 62 | def _change_ap_creds(self, ssid, pswd, new_ssid=True): |
| 63 | i = ["password", "SSID"][new_ssid] |
| 64 | self.logger.info("Changing %s..." % i) |
| 65 | r = self.send_command("wifi '%s' '%s'" % (ssid, pswd)) |
| 66 | self._feedback(r, "AP %s not changed" % i) |
| 67 | if not new_ssid: |
| 68 | self.console.state['TARGETS'][ssid]['password'] = pswd |
| 69 | self.console.state['PASSWORDS'][ssid] = pswd |
| 70 | return r |
| 71 | |
| 72 | def _send_udp_command(self, command): |
| 73 | msg = TelloModule.fly_params['commands'].get(command) |