Using Messages in Simulations

Hello everybody. I am trying to control a drone using simulation.
I wrote a Python code to go to the desired location using the ‘MAV_CMD_NAV_WAYPOINT’ message, but it doesn’t seem to be executed properly. There are no errors, but the copter does not move.
Could you please tell me which part is wrong?

hello,

That is expected you aren’t using the right message.
use https://mavlink.io/en/messages/common.html#SET_POSITION_TARGET_GLOBAL_INT or https://mavlink.io/en/messages/common.html#SET_POSITION_TARGET_LOCAL_NED

You can see an example here : https://github.com/ArduPilot/pymavlink/pull/503/commits/7c48ca6bc4c89f635e51d099610880eab754468a#diff-12b2f86722040e0e9a3800f0acef851073b6502b7dd875c227f2c7d14a810d79R1582 or in ArduPilot autotest suite

Thank you very much. I’ll take note! :grinning: