You're missing an important point... For example if you do this (supposed mView is a visible view):
Your view won't blink from gone to visible. It will just stay visible.
To make your drone move, and then after x seconds stop, you should do a pause of x seconds between the move command (setFlag(1) & setPitch(40)) and the stop command (setFlag(0)).
Also, please note that you should (but not required to) also set back the pitch to 0.