You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried sending velocity (forward, right, down) using send_ned_vel(v_x,v_y,v_z) and frame of MAV_FRAME_LOCAL_FRD but the vehicle is not changing vehicle.attitude.yaw. Please help how i can change my vehicle heading using velocity inputs. I have tried in both LOCAL_NED frame and GLOBAL_NED frame. The drone moves in the defined heading but the drone's attitude is not changing.
This is the command i used.
def send_ned_velocity(v_x,v_y,v_z):
msg = vehicle.message_factory.set_position_target_local_ned_encode(
0, # time_boot_ms (not used)
0, 0, # target system, target component
mavutil.mavlink.MAV_FRAME_LOCAL_FRD, # frame
0b0000111111000111, # type_mask (only speeds enabled)
0, 0, 0, # x, y, z positions (not used)
v_x, v_y, v_z, # x, y, z velocity in m/s
0, 0, 0, # x, y, z acceleration (not supported yet, ignored in GCS_Mavlink)
0, 0) # yaw, yaw_rate (not supported yet, ignored in GCS_Mavlink)
vehicle.send_mavlink(msg)
The text was updated successfully, but these errors were encountered:
I have tried sending velocity (forward, right, down) using send_ned_vel(v_x,v_y,v_z) and frame of MAV_FRAME_LOCAL_FRD but the vehicle is not changing vehicle.attitude.yaw. Please help how i can change my vehicle heading using velocity inputs. I have tried in both LOCAL_NED frame and GLOBAL_NED frame. The drone moves in the defined heading but the drone's attitude is not changing.
This is the command i used.
def send_ned_velocity(v_x,v_y,v_z):
msg = vehicle.message_factory.set_position_target_local_ned_encode(
0, # time_boot_ms (not used)
0, 0, # target system, target component
mavutil.mavlink.MAV_FRAME_LOCAL_FRD, # frame
0b0000111111000111, # type_mask (only speeds enabled)
0, 0, 0, # x, y, z positions (not used)
v_x, v_y, v_z, # x, y, z velocity in m/s
0, 0, 0, # x, y, z acceleration (not supported yet, ignored in GCS_Mavlink)
0, 0) # yaw, yaw_rate (not supported yet, ignored in GCS_Mavlink)
vehicle.send_mavlink(msg)
The text was updated successfully, but these errors were encountered: