Page 1 of 1

Azimuth (south = 0°)

Posted: 13.01.2013, 02:42
by Fenerit
Tested on LUA PLUGINS only. Define a

Code: Select all

local AZIMUTH_SOUTH = true -- false, for default Az


within the "compassBox.lua" and after the string "if display_az_elev then" add:

Code: Select all

if AZIMUTH_SOUTH then
if az > 180 then
az = math.abs(180 - az)
else
az = math.abs(180 + az)
end
az_str = "Azimuth (S=0°):".." "..string.format("%4.2f°", az);
else
az_str = "Azimuth:".." "..string.format("%4.2f°", az);
end


In Celestia the compass' North will point to the 0° degree of the horizontal grid while the azimuth label will mark 180°.

Re: Azimuth (south = 0°)

Posted: 13.01.2013, 17:45
by jogad
Hello,

I see no problem with both northern and southern latitudes :roll:

Snap1.jpg


Everything looks good without correction :!:

:mrgreen:

Re: Azimuth (south = 0°)

Posted: 13.01.2013, 19:20
by Fenerit
It is just an option for whom like to measure from south.

az.jpg