I want to control the drone by giving velocity but when I give vx and keeping vy=0 and vice verso it behave normally. But when I give vx and vy both simultaneously. It makes an yaw motion.
def send_local_ned_velocity(vx,vy,vz): msg = vehicle.message_factory.set_position_target_local_ned_encode( 0, 0, 0, mavutil.mavlink.MAV_FRAME_BODY_OFFSET_NED, 0b0000111111000111, 0, 0, 0, vx, vy, vz, 0,0,0,0,0) vehicle.send_mavlink(msg) vehicle.flush()
This is my function.
can check the video here. https://drive.google.com/file/d/1Die8NpEHtcNeCZIWar_wpneehw55YZ3n/view?usp=sharing