How to use the djitellopy.swarm.TelloSwarm function in djitellopy

To help you get started, we’ve selected a few djitellopy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github damiafuentes / DJITelloPy / djitellopy / swarm.py View on Github external
def fromIps(ips: list):
		"""Create TelloSwarm from a list of IP addresses.

		Arguments:
			ips: list of IP Addresses
		"""
		if len(ips) == 0:
			raise Exception("No ips provided")

		tellos = []
		for ip in ips:
			tellos.append(Tello(ip.strip()))

		return TelloSwarm(tellos)