... | ... |
@@ -14,7 +14,7 @@ |
14 | 14 |
viewBox="0 0 1024 768" |
15 | 15 |
version="1.1" |
16 | 16 |
id="SVGRoot" |
17 |
- inkscape:version="0.92.1 r15371" |
|
17 |
+ inkscape:version="0.92.4 (5da689c313, 2019-01-14)" |
|
18 | 18 |
sodipodi:docname="header-nav-comm.svg"> |
19 | 19 |
<sodipodi:namedview |
20 | 20 |
id="base" |
... | ... |
@@ -23,14 +23,14 @@ |
23 | 23 |
borderopacity="0" |
24 | 24 |
inkscape:pageopacity="0.0" |
25 | 25 |
inkscape:pageshadow="2" |
26 |
- inkscape:zoom="0.5" |
|
27 |
- inkscape:cx="512" |
|
28 |
- inkscape:cy="384" |
|
26 |
+ inkscape:zoom="1.4142136" |
|
27 |
+ inkscape:cx="510.72149" |
|
28 |
+ inkscape:cy="555.21759" |
|
29 | 29 |
inkscape:document-units="px" |
30 |
- inkscape:current-layer="layer1" |
|
30 |
+ inkscape:current-layer="PFD-navbox" |
|
31 | 31 |
showgrid="false" |
32 |
- inkscape:window-width="1600" |
|
33 |
- inkscape:window-height="836" |
|
32 |
+ inkscape:window-width="1920" |
|
33 |
+ inkscape:window-height="1016" |
|
34 | 34 |
inkscape:window-x="0" |
35 | 35 |
inkscape:window-y="27" |
36 | 36 |
inkscape:window-maximized="1" /> |
... | ... |
@@ -417,14 +417,13 @@ |
417 | 417 |
inkscape:label="LEG-text" |
418 | 418 |
id="LEG-text" |
419 | 419 |
y="22.123667" |
420 |
- x="263.75085" |
|
421 |
- style="font-style:normal;font-weight:normal;font-size:21.33333397px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" |
|
420 |
+ x="504.70834" |
|
421 |
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:21.33333397px;line-height:125%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" |
|
422 | 422 |
xml:space="preserve"><tspan |
423 |
- style="fill:#ff00ff" |
|
424 |
- y="40.998669" |
|
425 |
- x="263.75085" |
|
426 |
- id="tspan4549" |
|
427 |
- sodipodi:role="line" /></text> |
|
423 |
+ sodipodi:role="line" |
|
424 |
+ id="tspan102" |
|
425 |
+ x="504.70834" |
|
426 |
+ y="40.998669"></tspan></text> |
|
428 | 427 |
<text |
429 | 428 |
inkscape:label="DIS" |
430 | 429 |
id="DIS" |
... | ... |
@@ -385,7 +385,10 @@ var displayClass = { |
385 | 385 |
}, |
386 | 386 |
'BARO-text' : { |
387 | 387 |
alignment : 'left-bottom', |
388 |
- } |
|
388 |
+ }, |
|
389 |
+ 'LEG-text' : { |
|
390 |
+ alignment : 'center-center', |
|
391 |
+ }, |
|
389 | 392 |
# 'TAS-text' : { |
390 | 393 |
# alignment : 'right-bottom', |
391 | 394 |
# }, |
... | ... |
@@ -449,12 +452,12 @@ var displayClass = { |
449 | 452 |
DIS: func { |
450 | 453 |
if (fpSize == 0) return '---NM'; |
451 | 454 |
var dist = getprop('/autopilot/route-manager/distance-remaining-nm'); |
452 |
- return sprintf(dist >= 100 ? '%i' : '%.1f', dist); |
|
455 |
+ return sprintf(dist < 100 ? '%2.1fNM' : '%3iNM', dist); |
|
453 | 456 |
}, |
454 | 457 |
LEG: func { |
455 | 458 |
if (fpSize == 0) return ''; |
456 | 459 |
var wp = route.flightPlan[route.currentLeg.index]; |
457 |
- return wp[0].name ~ ' > ' ~ wp[1].name; |
|
460 |
+ return sprintf(' %s %s %s', wp[0].name, utf8.chstr(9658), wp[1].name); |
|
458 | 461 |
}, |
459 | 462 |
GS : func return sprintf('%iKT', getprop('/velocities/groundspeed-kt')), |
460 | 463 |
TRK: func return sprintf('%03i°', getprop('/orientation/track-deg')), |
... | ... |
@@ -474,17 +477,22 @@ var displayClass = { |
474 | 477 |
if (getDataFields) |
475 | 478 |
return keys(navbox); |
476 | 479 |
if (me.device.role == 'MFD') { |
480 |
+ var enroute = getprop('/autopilot/route-manager/current-wp') > -1; |
|
477 | 481 |
for (var i=1; i<=4; i+=1) |
478 | 482 |
me.screenElements['DATA-FIELD' ~ i ~ '-VAL-text'] |
483 |
+ .setVisible(enroute) |
|
479 | 484 |
.setText( |
480 |
- navbox[me.screenElements['DATA-FIELD' ~ i ~ '-ID-text'].get('text')]() |
|
485 |
+ navbox[me.screenElements['DATA-FIELD' ~ i ~ '-ID-text'].setVisible(enroute).get('text')]() |
|
481 | 486 |
); |
482 | 487 |
settimer(func me.updateNavigationBox(), 0.6); |
483 | 488 |
} |
484 | 489 |
else { # PFD |
485 |
- me.screenElements['ETE-text'].setText(navbox.ETE()); |
|
486 |
- me.screenElements['DIS-text'].setText(navbox.DIS()); |
|
487 |
- me.screenElements['LEG-text'].setText(navbox.LEG()); |
|
490 |
+ var enroute = getprop('/autopilot/route-manager/current-wp') > -1; |
|
491 |
+ me.screenElements['ETE'].setVisible(enroute); |
|
492 |
+ me.screenElements['DIS'].setVisible(enroute); |
|
493 |
+ me.screenElements['ETE-text'].setVisible(enroute).setText(navbox.ETE()); |
|
494 |
+ me.screenElements['DIS-text'].setVisible(enroute).setText(navbox.DIS()); |
|
495 |
+ me.screenElements['LEG-text'].setVisible(enroute).setText(navbox.LEG()); |
|
488 | 496 |
settimer(func me.updateNavigationBox(), 0.3); |
489 | 497 |
} |
490 | 498 |
}, |