Hi,
We are trying to use pymavlink to control the Anafi and Anafi USA. This is the function we are using to make other mavlink drone moving towards a GPS position:
master.mav.set_position_target_global_int_send(
0,
master.target_system,
master.target_component,
mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT_INT,
0b0000111111111000, # Type mask: ignore velocities and accelerations
int(lat * 1e7),
int(lon * 1e7),
alt,
0,
0,
0, # Velocities (ignored)
0,
0,
0, # Accelerations (ignored)
0,
0, # Yaw, yaw rate (ignored)
)
But despite multiple variations of this command we did not manage to make them move using GPS goal, which mavlink function should be used?
Thanks