Setting the home at the start of SITL

Hi

To set the Home you can do with the parameter:
-Home coordinates
or with the parameter
-L NameOfSavedCoordinates
saved in locations.txt.

Example: Ballarat=-37.598705,143.881744,485,165

The question may seem silly but what is the coordinate system? Why using 4 numbers? The first two longitude and latitude, which are the other two? What is the name of this coordinate system so i can move from one system to another?

thx

Hi

I think I have the answer.

Example: Ballarat=-37.598705,143.881744,485,165

-37.598705 --> latitude
143.881744 --> longitude
485 --> altitude
165 --> degrees respect north to where look at the drone

Hi, I am trying to add to the locations.txt file. I have two valid format locations added to the file but when starting and calling either of these locations I get an unknown location error. Do I have to rebuild it all for these locations to be picked up? Thanks for any reply.

Hi, I am trying to add to the locations.txt file. I have two valid format
locations added to the file but when starting and calling either of these
locations I get an unknown location error. Do I have to rebuild it all for
these locations to be picked up? Thanks for any reply.

No rebuild is required. Try using a file in your home directory instead
of modifying locations.txt:

pbarker@bluebottle:~$ cat /home/pbarker/.config/ardupilot/locations.txt
GSP=-35.207897,149.043640,550.840027,270
pbarker@bluebottle:~$

1 Like

Thank you PBarker, solved the issue. Much appreciated.