Hi
I’m using DroneKit and a companion computer to send movement commands to my drone in GUIDED mode. When I send a movement command with DroneKit code like this:
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_BODY_OFFSET_NED, # frame
0b110111111000, # type_mask (only position enabled)
x, y, z, # x, y, z positions
0, 0, 0, # 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)
# send command to vehicle
vehicle.send_mavlink(msg)
The drone should move to the waypoint; however, it exhibits aggressive and erratic movement on the yaw axis. I have tried to decrease the yaw speed using MAV_CMD_CONDITION_YAW but it hasn’t worked well.
I also attempted to use yaw_rate in SET_POSITION_TARGET_LOCAL_NED but that didn’t yield the desired results either.
For example, I want to send a movement command for the drone to fly 40 meters forward and 20 meters to the left while controlling yaw speed and acceleration.
I noticed the parameter ATC_SLEW_YAW but I’m unsure what it does. If I change this parameter, could it pose a danger to my drone?
Can anyone help me with this topic?
Regards