MAVSDK-Python icon indicating copy to clipboard operation
MAVSDK-Python copied to clipboard

getting mavsdk version

Open Jai-GAY opened this issue 11 months ago • 5 comments

Is it the correct way to retrieve it?

print("System server version : ", mavsdk.major, " ", mavsdk.minor) output System server version : 3 10

https://github.com/mavlink/MAVSDK/releases https://github.com/mavlink/MAVSDK-Python/releases

Jai-GAY avatar Mar 21 '24 02:03 Jai-GAY

No, The Latest Mavsdk Version available is - 2.1 This might be your python version, Really Not sure about it. You can check the mavsdk version in your MAVSdk-Python Repo, Through cat MAVSDK_SERVER_VERSION, this will be your downloaded github repo. It sometimes differs to your installed mavsdk server version. Check through sudo apt search libmavsdk-dev

arpitpara avatar Mar 21 '24 04:03 arpitpara

This might be your python version, Really Not sure about it.

Yes, that is my Python 3 version as well. maybe. Yes, I am very sure my Mavsdk-python is 2.1.0.

Jai-GAY avatar Mar 21 '24 05:03 Jai-GAY

Ok. Then You can close the issue if you're able to find the version.

arpitpara avatar Mar 21 '24 05:03 arpitpara

Ok. Then You can close the issue if you're able to find the version.

No, I cannot through Python 3 code.

Jai-GAY avatar Mar 21 '24 06:03 Jai-GAY

Ok, so we should expose this function via Python: https://github.com/mavlink/MAVSDK/blob/10876a89b5d4097b68009fa98b30b1ff08c29488/src/mavsdk/core/include/mavsdk/mavsdk.h#L54-L61

I think we need to add it to proto here: https://github.com/mavlink/MAVSDK-Proto/blob/main/protos/core/core.proto#L9

And then implement it here: https://github.com/mavlink/MAVSDK/blob/10876a89b5d4097b68009fa98b30b1ff08c29488/src/mavsdk_server/src/core/core_service_impl.h

Pull requests welcome :smile:

julianoes avatar Mar 21 '24 21:03 julianoes