carlospzlz / ctello

C++ library to interact with the DJI Ryze Tello Drone
GNU General Public License v3.0
53 stars 19 forks source link

Ctello state #7

Open AnaRhisT94 opened 3 years ago

AnaRhisT94 commented 3 years ago

Not getting tello's state, I'm just getting the following messages and that's it: image

carlospzlz commented 3 years ago

Could you enable debug logging?

env SPDLOG_LEVEL=debug ./ctello_state
carlospzlz commented 3 years ago

Hi @AnaRhisT94, any luck with this?

AnaRhisT94 commented 3 years ago

When running the quick-starter guide I'm getting:

[10/30/21 13:20:34] [ctello] [info] Finding Tello ...
[10/30/21 13:20:34] [ctello] [debug] 127.0.0.1:9000 >>>> 7 bytes >>>> 192.168.10.1:8889: command
[10/30/21 13:20:35] [ctello] [debug] 127.0.0.1:9000 <<<< 2 bytes <<<< 192.168.10.1:8889: ok
[10/30/21 13:20:35] [ctello] [info] Entered SDK mode
[10/30/21 13:20:35] [ctello] [debug] 127.0.0.1:9000 >>>> 3 bytes >>>> 192.168.10.1:8889: sn?
[10/30/21 13:20:35] [ctello] [debug] 127.0.0.1:9000 <<<< 20 bytes <<<< 192.168.10.1:8889: unknown command: sn?
[10/30/21 13:20:35] [ctello] [info] Serial Number: unknown command: sn?
[10/30/21 13:20:35] [ctello] [debug] 127.0.0.1:9000 >>>> 4 bytes >>>> 192.168.10.1:8889: sdk?
[10/30/21 13:20:35] [ctello] [debug] 127.0.0.1:9000 <<<< 21 bytes <<<< 192.168.10.1:8889: unknown command: sdk?
[10/30/21 13:20:35] [ctello] [info] Tello SDK:     unknown command: sdk?
[10/30/21 13:20:35] [ctello] [debug] 127.0.0.1:9000 >>>> 5 bytes >>>> 192.168.10.1:8889: wifi?
[10/30/21 13:20:35] [ctello] [debug] 127.0.0.1:9000 <<<< 4 bytes <<<< 192.168.10.1:8889: 90
[10/30/21 13:20:35] [ctello] [info] Wi-Fi Signal:  90
[10/30/21 13:20:35] [ctello] [debug] 127.0.0.1:9000 >>>> 8 bytes >>>> 192.168.10.1:8889: battery?
[10/30/21 13:20:35] [ctello] [debug] 127.0.0.1:9000 <<<< 4 bytes <<<< 192.168.10.1:8889: 79
[10/30/21 13:20:35] [ctello] [info] Battery:       79
[10/30/21 13:20:35] [ctello] [debug] 127.0.0.1:9000 >>>> 7 bytes >>>> 192.168.10.1:8889: takeoff
[10/30/21 13:20:41] [ctello] [debug] 127.0.0.1:9000 <<<< 2 bytes <<<< 192.168.10.1:8889: ok
[10/30/21 13:20:41] [ctello] [debug] 127.0.0.1:9000 >>>> 6 bytes >>>> 192.168.10.1:8889: flip b
[10/30/21 13:20:45] [ctello] [debug] 127.0.0.1:9000 <<<< 2 bytes <<<< 192.168.10.1:8889: ok
[10/30/21 13:20:45] [ctello] [debug] 127.0.0.1:9000 >>>> 4 bytes >>>> 192.168.10.1:8889: land
[10/30/21 13:20:49] [ctello] [debug] 127.0.0.1:9000 <<<< 2 bytes <<<< 192.168.10.1:8889: ok

And the drone flies and flips, but I'm interested in getting the state of the drone (acceleration, barometer, etc..)

carlospzlz commented 3 years ago

That's quite strange, it seems that some of the commands are not supported. Do you know what's your firmware's version? Could you try updating it?

lev-droid commented 2 years ago

I get the same issue using the latest firmware. I also do not get any opencv window appearing when I use ctello-stream, but I suspect that has something to do with my usage of the wsl.

queharris commented 2 years ago

Any luck with this by any chance?

carlospzlz commented 2 years ago

I'll have a look at this soon.

carlospzlz commented 2 years ago

I've just done some testing and investigation for this.


Tello EDU model (SDK 2.0 - firmware 2.05.01.17)

This was the Tello that this project was originally developped and tested for

Here you can find the manuals for all the different versions of the SDKs:

Does this help?

If you are finding any issues that don't align with what cited here, could you confirm what model of the aircraft you have and firmware version you are running with, please?