Telemetry logging fails
See original GitHub issueHi,
I ran into a problem using MAVSDK-Python telemetry class. I am able to initiate connection to my flight controller with mavsdk_server, and then also connect with examples/telemetry.py (every time I run it).
However, telemetry data is sometimes streamed, and sometimes not. So far I could not figure out anything systematic; it happens that I run the script, it works, I stop is, immediately run again and not working. I tried, reconnecting the flight control board, modifying /dev/ttyACM1
permissions, and not defining the port for mavsdk_server
, but rather use the port number of it in my telemetry python script; none of them solved the problem.
What seems to be happening is in
async for in_air in drone.telemetry.in_air():
the drone.telemetry.in_air()
object is “empty”, so the program does not go into the for loop, but is constantly trying, since it runs asynchronously.
Anyone has any idea why it fails and runs correctly seemingly random? Thanks for any help!
Specs:
My flight controller is Durandal.
Using PX4 master build
Running mavsdk-python on NVidia Jetson Nano board.
The Jetson and Durandal are connected via USB, serial /dev/ttyACM1:115200.
For mavsdk server I’m using the port option -p 50051
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Hi,
thanks for your answer.
Not exactly. The behavior of telemetry.py is the same as my script: sometimes works, sometimes not. The difference between the two script is mainly that I am writing to file instead of terminal. (I just wanted to test with the “official” example also.)
I don’t run two programs in the same time, so I don’t think that could be a problem.
Today morning I tried again, and it is always running correctly. Which is strange as I haven’t changed anything since yesterday, in the code or in the way I run it or use mavsdk_server. I will test it more and let you know the results.
Closing as there was no more answers here.