Fireline-Science / tello_sim

This is the repo for the DJI Tello simulator. The sim is targeted at students or classes who want to add simulation to a Tello project. Specifically, we are using it to have students program a path through an in-class obstacle course.
MIT License
36 stars 16 forks source link

Update simulator.py #13

Open dullahgtt opened 2 years ago

dullahgtt commented 2 years ago

From he looks of it, just changing the library to the better djitellopy library, the simulator still works perfectly. Please let me know if it does not work.

sean-schaefer commented 2 years ago

Hey @dullahgtt, thanks for your effort here. I went through some testing with my drone and I think we'll need to make a few more changes as the API for djitellopy is a little bit different.

Currently when we deploy the drone, we call the send_command function from easy tello, which waits for a response from the drone. That function doesn't exist in djitellopy, but they do have two similar functions: send_command_with_return and send_command_without_return. I haven't dug too deep yet but it's possible we could drop-in replace with the "with return" function, though I would probably want to review the whole API and confirm if there's not any better integration points.

If you have the bandwidth to look into those additional changes, that would be much appreciated, but I can also investigate further when I get some more free time, probably in a week or so. Thanks again!