Drone Rotates when we give vx and vy both


#1

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

thank you


#2

I am traveling and will try to look at this next week.

Jack


closed #3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.