Vector Mavlink Commands

Would like to ask if it is possible to apply vector mavlink commands on drones?

Or are there any ways to implement this code for the drone to move directly at a certain direction without it having it to face a certain heading angle?

msg = self.vehicle.message_factory.set_position_target_local_ned_encode(
            0,
            0,0,
            mavutil.mavlink.MAV_FRAME_BODY_OFFSET_NED,
            0b0000111111000111, #BITMASK > Consider only the velocities
            0,0,0,  #--Position
            Vx, Vy, Vz, #--Velocity
            0,0,0,  #--Acceleration
            0,0
        )

I did try implementing MAV_FRAME_BODY_OFFSET_NED and MAV_CMD_CONDITION_YAW together but there’s no movement at all.

Update from ArduCopter 4.0 to ArduCopter 4.3.5 and re-test

1 Like