These are chat archives for dronekit/dronekit-android

6th
May 2016
santiandres33
@santiandres33
May 06 2016 20:26
hey guys, I am working with dronekit Android, and I am trying to get an specific mavlink message (25), although I don't why I have not getting it. Also try getting any other message but I same result. Any thought maybe be very appreciatied

don't know why am I missing:

msg_message_interval msgMessageInterval = new msg_message_interval();
msgMessageInterval.message_id = 25;
msgMessageInterval.interval_us = 10;

            MavlinkMessageWrapper mavlinkMessageWrapper = new MavlinkMessageWrapper(msgMessageInterval);

            Log.d("REQUESTED MAV",mavlinkMessageWrapper.getMavLinkMessage().toString());

            ExperimentalApi.getApi(MainActivity.drone).sendMavlinkMessage(mavlinkMessageWrapper);

            MainActivity.drone.addMavlinkObserver(new MavlinkObserver() {
                @Override
                public void onMavlinkMessageReceived(MavlinkMessageWrapper mavlinkMessageWrapper) {
                    Log.d("Received Mavlinks:",mavlinkMessageWrapper.getMavLinkMessage().toString());

// Toast.makeText(getBaseContext(),mavlinkMessageWrapper.getMavLinkMessage().toString(),Toast.LENGTH_LONG).show();