mavlink / MAVSDK-Java

MAVSDK client for Java.
71 stars 41 forks source link

Python-MAVSDK can't retrieve data from Mini Pix after successful connection over serial USB #45

Closed rehadiri closed 4 years ago

rehadiri commented 4 years ago

Hello,

I am trying telemetry.py example python code ( by modifying for serial connection ) to get telemetry data from my Mini Pix . Mavsdk_server can connect to px4 , python code can connect mavsdk_server over tcp connection and i can see that drone discovered with UUID:1 message . But I cant get any data from flight controller.

When i switch to Mission Planer over the same USB connection Mission Planer can access any data in the px4, no problem at all. Very strange thing is that when i close MP and switch back to my python application my application also can get telemetry data without problem.

It seems that MP setting something in the Mini Pix but i dont know what is it ?

Is there a way to solve this problem ?

Thanks

JonasVautherin commented 4 years ago

Are you running ArduPilot?

rehadiri commented 4 years ago

Sorry i should open this issue in MAVSDK-Python

rehadiri commented 4 years ago

No, its a PX4 i guess.

JonasVautherin commented 4 years ago

Yes, but if you use ArduPilot, the answer is the same: https://github.com/mavlink/MAVSDK/issues/728. TL;DR: ArduPilot is not supported by MAVSDK.

No, its a PX4 i guess.

I am not sure if Mission Planner works with PX4, but I don't think so. So my guess is that you use ArduPilot. A common confusion is for people who run ArduPilot (firmware) on a Pixhawk (hardware): the pixhawk is a board on which you can run either ArduPilot or PX4, which are two different firmwares.

Does that make sense?

rehadiri commented 4 years ago

Actually i have two of Mini Pix , i tried to install a new firmware on my old mini pix from the Ardupilot firmwares. It looks its installed . But it never worked. I couldn't boot it normally . Even i tried dfu stuff.

Then i decided to not loading any firmware on my second mini pix. Its version is Mini pix V1.1

rehadiri commented 4 years ago

Qgroundcontroller shows it as "PX4 Flow" board. They say its a mistake but . QGC also can access

JonasVautherin commented 4 years ago

I'm not sure. You have to figure out if you are running PX4 or not. If you are not running PX4, then MAVSDK probably won't work.

rehadiri commented 4 years ago

The product is Radiolink china (http://radiolink.com.cn/doce/product-detail-169.html ) , i dont know what they install in the factory. But both QGC and MP software can access to the conroller and retrieve data.

Its not yet calibrated . Its not on a real drone . Only the controller it self.

The strange think is that what happens when i connect to Mission Planner and after the telemetry.py starts working.

Very strange for me.

rehadiri commented 4 years ago

I plugged out the USB cable and put on the Ubuntu laptop ( Mavsdk_server backend runs separetly ). Earlier this one either was not working . But i can see i can retrieve data here also.

It means whatever MP did in the Mini Pix stays permanent during power on.

rehadiri commented 4 years ago

I have to correct that QGC can access to the FC board only from serial tty not from USB. When using USB connection with QGC. QGC can figure out its a "PX4 Flow" board and can update the firmware not more.

julianoes commented 4 years ago

Sorry, it still sounds like you are using ArduPilot and not PX4. As said above, that's not supported at this time.