I am trying to use mavros to takeoff a quad, and the specific steps I followed were:
- guide and arm the quad;
- send poseStamped of value 0,0,2 to mavros/local_position/pose;
It works perfectly in my gazebo simulator but it fails with horizontal displacement when taking off during field test, to be more specific, when it took off, it would fly 1 or 2 meters away from its starting point horizontally before it hovers around at height 2 meters.
Is there anything I am doing wrong? Any help would be appreciated!