You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been working on a project using 3dr solo and android drone kit. I got stuck requesting specific mavlink message using experimental API. Whatever I send to the drone, I am getting same mavlink messages in the onMavlinkMessageReceived method. For instance, I am trying to get GPS_STATUS mavlink message from the drone, whose message id is 25, however, I am not getting anything. Addtionaly, I have tried to request all mavlink messages one by one with the following code but again no luck. I would appreciate if you can direct me on this issue.
Thanks!!
msg_message_interval msgMessageInterval = new msg_message_interval();
msgMessageInterval.message_id = 25;
msgMessageInterval.interval_us = 10;
MavlinkMessageWrapper mavlinkMessageWrapper= new MavlinkMessageWrapper(msgMessageInterval);
ExperimentalApi.getApi(MainActivity.drone).sendMavlinkMessage(mavlinkMessageWrapper);
MainActivity.drone.addMavlinkObserver(new MavlinkObserver() {
@Override
public void onMavlinkMessageReceived(MavlinkMessageWrapper mavlinkMessageWrapper) {
Log.d("bla",mavlinkMessageWrapper.getMavLinkMessage().toString());
}
});
The text was updated successfully, but these errors were encountered:
I am not quite sure, but from your code, looks like you try to send a mavlink msg to your drone. It should be able to receive the message on the drone side. As for the onMavlinkMessageReceived API, maybe it will receive the correct value sent from drone side. This is what I think. If you have drone source code, you should find the values sent from your APP be received on drone source code API something like this "mavlink_msg_message_interval_decode". This is just my opinion, because it works for me.
Hello guys,
I have been working on a project using 3dr solo and android drone kit. I got stuck requesting specific mavlink message using experimental API. Whatever I send to the drone, I am getting same mavlink messages in the onMavlinkMessageReceived method. For instance, I am trying to get GPS_STATUS mavlink message from the drone, whose message id is 25, however, I am not getting anything. Addtionaly, I have tried to request all mavlink messages one by one with the following code but again no luck. I would appreciate if you can direct me on this issue.
Thanks!!
The text was updated successfully, but these errors were encountered: