mavlink / MAVSDK-Java

MAVSDK client for Java.
76 stars 42 forks source link

How to get wind speed or wind direction for IF (inspire flight drone) #186

Open gongelosP opened 1 month ago

gongelosP commented 1 month ago

Currently working with latest version of this SDK for Android application, already work on the drone connection and getting some information from the telemetry module. But i can't find a way to obtain the wind speed or wind direction from the telemetry pack, any idea how this is done? I found in the MAVLINK documentation that there is some wind information https://mavlink.io/en/messages/common.html#WIND_COV

So the question would be how can i get that wind information with this Android SDK

Thanks

julianoes commented 1 month ago

This message is currently not exposed. We either have to add it to telemetry by adding it to proto first, then C++, and eventually Java.

Also see: https://mavsdk.mavlink.io/main/en/cpp/contributing/autogen.html

In C++ it's possible to subscribe to any MAVLink message using MavlinkPassthrough, however, not in the language wrappers like Java, yet. I'm planning to add (runtime) passthrough for the language wrappers based on https://github.com/Auterion/libmav for v4.

gongelosP commented 1 month ago

Thanks for the answer @julianoes! First question would be if have any date in mind when you think the MavlinkPassthrough would be available in Java.

In other hand do you know any other solution to get this wind data in the mean while? Working with Android application and IF drone

julianoes commented 1 month ago

I can't promise any dates as I do this in my spare time, for free.

If you want to bump this up on my todo list, consider sponsoring me.