How to send velocity commands?

Hi Everyone,

I’m trying to send velocity commands to the a copter simulated in gazebo by following this tutorial:

However, when I do the command described likevelocity x y z (m/s) (in my case I do velocity 2 0 0 ), even though the copter starts to move in the desired direction, after a couple of seconds it starts moving in the opposite direction as if trying to return to the original position. Is this because I’m in GUIDED mode? if so, what is the correct mode to do this? or what parameter should I check for, to make sure this is possible?


I was able to send this commands through mavros.

please follow this link: