Cannot change starting position of a simulated drone

Hello everyone,

I have a problem regulating the spawning position of my simulated drone. I am using the latest versions of PX4-Autopilot, QGroundControl and Gazebo on a VirtualBox running Ubuntu 22.04. I am also writing some mission plans in C++ using the MAVSDK libraries.

I am currently trying to start a simulation in Germany, but the drone keeps spawning in Zurich, Switzerland. I tried looking everywhere on the interne t for a solution; I tried changing the environment variables as shown in this tutorial: Gazebo Simulation | PX4 User Guide

I also tried changing the various coordinates in the .world files but it did not change a thing and the drone is still stuck in Zurich.

Does someone know how to fix this problem? Thanks in advance for your help :slight_smile:

1 Like