Improved latitude and longitude formatting for the HUD.
This follows from http://thread.gmane.org/gmane.games.flightgear.devel/78650 and resolves the sign bug https://sourceforge.net/p/flightgear/codetickets/1778/ . Combined with a matching change to the flightgear repository, this changes the HUD formats from the current set of 3 (note that the text in brackets is not shown in the HUD preferences PUI dialog, but is show here for reference): 0) Decimal degrees (37.618890N -122.375000W) 1) Degrees, minutes (37*37.133N -122*22.500W) 2) Degrees, minutes, seconds (37*37 08.0 N -122*22 30.0 W) to (here the text in brackets is shown in the PUI dialog): 0) DDD format (37.618890N 122.375000W) 1) DMM format (37*37.133'N 122*22.500'W) 2) DMS format (37*37'08.0"N 122*22'30.0"W) 3) Signed DDD format (37.618890 -122.375000) 4) Signed DMM format (37*37.133' -122*22.500') 5) Signed DMS format (37*37'08.0" -122*22'30.0") 6) Zero padded DDD (51.477500N 000.461389W) 7) Zero padded DMM (51*28.650'N 000*27.683'W) 8) Zero padded DMS (51*28'39.0"N 000*27'41.0"W) 9) Trinity House Navigation (51* 28'.650N 000* 27'.683W)
This commit is contained in:
parent
f44db83b25
commit
c6da4a2b65
1 changed files with 80 additions and 3 deletions
|
@ -101,7 +101,7 @@
|
|||
<property>/sim/gui/dialogs/hud/lon-lat-format-0</property>
|
||||
<value>0</value>
|
||||
<live>true</live>
|
||||
<label>Decimal degrees</label>
|
||||
<label>DDD format (37.618890N 122.375000W)</label>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio(0);</script>
|
||||
|
@ -111,7 +111,7 @@
|
|||
<halign>left</halign>
|
||||
<property>/sim/gui/dialogs/hud/lon-lat-format-1</property>
|
||||
<value>1</value>
|
||||
<label>Degrees, minutes</label>
|
||||
<label>DMM format (37*37.133'N 122*22.500'W)</label>
|
||||
<live>true</live>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
|
@ -123,12 +123,89 @@
|
|||
<property>/sim/gui/dialogs/hud/lon-lat-format-2</property>
|
||||
<value>2</value>
|
||||
<live>true</live>
|
||||
<label>Degrees, minutes, seconds </label>
|
||||
<label>DMS format (37*37'08.0"N 122*22'30.0"W)</label>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio(2);</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<radio>
|
||||
<halign>left</halign>
|
||||
<property>/sim/gui/dialogs/hud/lon-lat-format-3</property>
|
||||
<value>3</value>
|
||||
<live>true</live>
|
||||
<label>Signed DDD format (37.618890 -122.375000)</label>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio(3);</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<radio>
|
||||
<halign>left</halign>
|
||||
<property>/sim/gui/dialogs/hud/lon-lat-format-4</property>
|
||||
<value>4</value>
|
||||
<live>true</live>
|
||||
<label>Signed DMM format (37*37.133' -122*22.500')</label>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio(4);</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<radio>
|
||||
<halign>left</halign>
|
||||
<property>/sim/gui/dialogs/hud/lon-lat-format-5</property>
|
||||
<value>5</value>
|
||||
<live>true</live>
|
||||
<label>Signed DMS format (37*37'08.0" -122*22'30.0")</label>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio(5);</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<radio>
|
||||
<halign>left</halign>
|
||||
<property>/sim/gui/dialogs/hud/lon-lat-format-6</property>
|
||||
<value>6</value>
|
||||
<live>true</live>
|
||||
<label>Zero padded DDD (51.477500N 000.461389W)</label>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio(6);</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<radio>
|
||||
<halign>left</halign>
|
||||
<property>/sim/gui/dialogs/hud/lon-lat-format-7</property>
|
||||
<value>7</value>
|
||||
<live>true</live>
|
||||
<label>Zero padded DMM (51*28.650'N 000*27.683'W)</label>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio(7);</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<radio>
|
||||
<halign>left</halign>
|
||||
<property>/sim/gui/dialogs/hud/lon-lat-format-8</property>
|
||||
<value>8</value>
|
||||
<live>true</live>
|
||||
<label>Zero padded DMS (51*28'39.0"N 000*27'41.0"W)</label>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio(8);</script>
|
||||
</binding>
|
||||
</radio>
|
||||
<radio>
|
||||
<halign>left</halign>
|
||||
<property>/sim/gui/dialogs/hud/lon-lat-format-9</property>
|
||||
<value>9</value>
|
||||
<live>true</live>
|
||||
<label>Trinity House Navigation (51* 28'.650N 000* 27'.683W)</label>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>set_radio(9);</script>
|
||||
</binding>
|
||||
</radio>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue