Skip to content

[Feature Request] Custom Mavlink messages on Python #739

@kripper

Description

@kripper

I'm writing a Dronekit wrapper to make it easier to migrate Dronekit apps and use MAVSDK.

  1. There are many Mavlink msgs that are not supported.
    For example, how can we send a MAV_FRAME_LOCAL_NED msg with MAVDK?
msg = self.vehicle.message_factory.set_position_target_local_ned_encode(
	0,

	0,          # SysId
	0,          # CompId

	mavutil.mavlink.MAV_FRAME_LOCAL_NED,          # frame
	0b111,          # mask (ignore x,y,z)

	0,	        # x
	0,	        # y
	0,          # z

	vx, 		# vx
	vy,		    # vy
	vz,         # vz

	0,          # afx
	0,          # afy
	0,          # afz

	0,          # yaw
	yawRate,          # yaw rate
)
self.vehicle.send_mavlink(msg)
self.vehicle.flush()
  1. Is there any way to send a custom message built with message_factory through the MAVSDK connection?
    This would be very handy (feature request).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions