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(
            0b0000111111000111, #BITMASK > Consider only the velocities
            0,0,0,  #--Position
            Vx, Vy, Vz, #--Velocity
            0,0,0,  #--Acceleration

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