Hi. I’m using ArduCopter 4.1.1 in guided mode.
I want velocity and position command via mavlink to ardupilot but I require to velocity command in axis x,y and position command just in axis z. it means that my type_mask is 0b101111100011.
and my function with dronekit pkg is here:
def send_enu_pos_z_vel_xy(velocity_x, velocity_y, pos_z, yaw):
yaw = (math.pi/180)*yaw
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_NED, # frame
0b0000101111100011, # type_mask
0, 0, -pos_z, # x, y, z positions
velocity_y, velocity_x, 0, # x, y, z velocity in m/s
0, 0, 0, # x, y, z acceleration (not supported yet, ignored in GCS_Mavlink)
yaw, 0) # yaw, yaw_rate (not supported yet, ignored in GCS_Mavlink)
Can anyone have an idea for this?
thanks for your attention.
I’m afraid that we don’t support providing horizontal velocity and vertical position as a single command. Feel free to add an enhancement request to the issues list but I can’t promise when anyone will get to it. I agree that it is a totally reasonable request to be able to do this.