Open AnaRhisT94 opened 3 years ago
Could you enable debug logging?
env SPDLOG_LEVEL=debug ./ctello_state
Hi @AnaRhisT94, any luck with this?
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..)
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?
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.
Any luck with this by any chance?
I'll have a look at this soon.
I've just done some testing and investigation for this.
This was the Tello that this project was originally developped and tested for
sn?
and sdk?
seem to work finectello-state
seems to work fine
sn?
and sdk?
are unknown commandsctello-state
seems to work fine (slightly different fields in the state)Not tested
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?
Not getting tello's state, I'm just getting the following messages and that's it: