Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

Python Programming of Tello Drone (multi-tello-formation-master)

cui

New member
Joined
Aug 2, 2021
Messages
1
Reaction score
0
Do you know about the code commands inside the multi-tello-formation-master folder?

I gave a serial number in place of "No. 1".
But cmd is recognizing the wrong aircraft, not the serial number I want!

I'm using 1 IP Time router, 2 laptops, 4 Tello Edu.

Do you know how I can put the IP address instead of the serial number? How about changing the code? I'll attach the txt file I'm thinking about right now.

If anyone has time please let me know
please

Thank you for read
 

Attachments

  • d_1.txt
    82 bytes · Views: 6

vk2yacc

Member
Joined
Apr 28, 2022
Messages
5
Reaction score
0
Hi - unsure if you have continued with this since posted last year
This is the command file - cmnd-01 - from the One-Off Coder tutorial on Swarm Programming

I haven't had a connection yet so am analysing the code
It seems to handle the commands listed in the SDK V2.0 plus the following

9.3. Commands


Command

&

Description
Method
Result
'//'

comment
_handle_comment

(command)
Print

[COMMENT] (command)
'scan'
_handle_scan

(command)
'>'

gte
_handle_gte

(command)
'battery_check'
_handle_battery_check

(command)
'delay'
_handle_delay

(command)
'correct_ip'
_handle_correct_ip

(command)
'='
_handle_equal

(command)
'sync'
_handle_sync

(command)

I'm currently testing to connect at least one Tello EDU

Results so far... (running on WIndows 10)
Command
python planned-flight.py -f cmds-01.txt

Debug prints
>>>>>>
fpath: cmds-01.txt
Commands: ['scan 1\n', 'battery_check 20\n', 'correct_ip\n', '1=0TQZJA9ED01UZY\n', '1>takeoff\n', 'sync 1\n', '1>land']
Swarm commands: ['scan 1\n', 'battery_check 20\n', 'correct_ip\n', '1=0TQZJA9ED01UZY\n', '1>takeoff\n', 'sync 1\n', '1>land']
cmds-01.txt
Swarm Manager <tello.TelloManager object at 0x0000014D8DB9CD30>

8889
[]
[]
20.0
{}
{}
[]
[]
{'0TQZJA9ED01UZY': '192.168.3.101', '0TQZJ1EED01AHY': '192.168.3.103'}
{0: '0TQZJA9ED01UZY', 1: '0TQZJ1EED01AHY'}
{'192.168.3.101': 0, '192.168.3.103': 1}
socket: AddressFamily.AF_INET
[DEBUG-find_avaliable_tello] possible_ips: []

>>> Output from code
[SEARCHING], Searching for 1 from 0 possible IP addresses

>>> more debug print
[DEBUG-find_avaliable_tello] self.tello_ip_list: []

>>> Output from code
[SEARCHING], Trying to find Tellos, number of tries = 1
[SEARCHING], Trying to find Tellos, number of tries = 2
[SEARCHING], Trying to find Tellos, number of tries = 3
[SEARCHING], Trying to find Tellos, number of tries = 4
[SEARCHING], Trying to find Tellos, number of tries = 5
[SEARCHING], Trying to find Tellos, number of tries = 6
[SEARCHING], Trying to find Tellos, number of tries = 7
[SEARCHING], Trying to find Tellos, number of tries = 8
[SEARCHING], Trying to find Tellos, number of tries = 9
[SEARCHING], Trying to find Tellos, number of tries = 10

>>> Finally I kill it as it is not finding the Tello drones [^C]
[QUIT_ALL], KeyboardInterrupt. Sending land to all drones
[LOG] Saved log files to ./log/2022-07-04_16-56-46.txt

SO you did get a connection - although the wrong drone
Did it respond to the command list
ie did it takeoff and then land

regards
 

vk2yacc

Member
Joined
Apr 28, 2022
Messages
5
Reaction score
0
Just checking your command sequence
scan 1
battery_check 20
correct_ip
1=0TQDG2KEDBQ0NL
*>takeoff
sync 10
1>land

In the original it should be

1>takeoff

Unsure if you have moved passed this
regards
 

New Threads

Members online

No members online now.

Forum statistics

Threads
5,446
Messages
38,865
Members
15,455
Latest member
xclmx