Showing 1 changed files with 9 additions and 9 deletions
+9 -9
Nasal/display.nas
... ...
@@ -1,4 +1,4 @@
1
-# vim: set foldmethod=marker foldmarker="{{{,}}}"
1
+# vim: set foldmethod=marker foldmarker={{{,}}} :
2 2
 var displayClass = {
3 3
     new: func(node, role) {
4 4
         var m = { parents: [ displayClass ] };
... ...
@@ -293,7 +293,7 @@ var displayClass = {
293 293
 #}}}
294 294
 
295 295
     updateVSI: func (vsi) {
296
-#{{{
296
+# animate VSI {{{
297 297
         me.screenElements.VSIText
298 298
             .setText(num(math.round(vsi, 10)));
299 299
         if (vsi > 4500)
... ...
@@ -307,7 +307,7 @@ var displayClass = {
307 307
 #}}}
308 308
 
309 309
     updateIAS: func (ias) {
310
-#{{{
310
+# animates the IAS lint (PFD) {{{
311 311
         if (ias >= 10)
312 312
             me.screenElements.Speed110
313 313
                 .setText(sprintf("% 2u",num(math.floor(ias/10))));
... ...
@@ -335,7 +335,7 @@ var displayClass = {
335 335
 #}}}
336 336
 
337 337
     updateALT: func (alt) {
338
-#{{{
338
+# animates the altitude lint (PFD) trent to do {{{
339 339
         if (alt < 0)
340 340
             me.screenElements.Alt11100
341 341
                 .setText(sprintf("% 3i",math.ceil(alt/100)));
... ...
@@ -489,7 +489,7 @@ var displayClass = {
489 489
 #}}}
490 490
 
491 491
     updateHSI : func (hdg) {
492
-#{{{
492
+# rotates the compass (PFD) {{{
493 493
         me.screenElements.Rose
494 494
             .setRotation(-hdg * D2R);
495 495
         me.screenElements['HDG-text']
... ...
@@ -499,7 +499,7 @@ var displayClass = {
499 499
 #}}}
500 500
 
501 501
     updateHDG : func (hdg) {
502
-#{{{
502
+# moves the heading bug and display heading-deg for 3 seconds (PFD) {{{
503 503
         if (me.role == 'MFD')
504 504
             return;
505 505
         me.screenElements['Heading-bug']
... ...
@@ -531,7 +531,7 @@ var displayClass = {
531 531
 #}}}
532 532
 
533 533
     _updateRadio: func {
534
-#{{{
534
+# common parts for NAV/LOC/COMM radios{{{
535 535
         # arg[0]._r = <comm|nav>
536 536
         if (contains(arg[0], "active")) {
537 537
             if (arg[0]['active'] == 'none') {
... ...
@@ -585,7 +585,7 @@ var displayClass = {
585 585
 #}}}
586 586
 
587 587
     updateNAV : func {
588
-#{{{
588
+# update NAV/LOC rodios display upper left (PFD/MFD){{{
589 589
         # made active via menu
590 590
         if (contains(arg[0], "active")) {
591 591
             if (arg[0]['active'] == 'none') {
... ...
@@ -634,7 +634,7 @@ var displayClass = {
634 634
 #}}}
635 635
 
636 636
     updateCOMM: func {
637
-#{{{
637
+# update COMM radios display upper right (PFD/MFD){{{
638 638
         arg[0]._r = 'comm';
639 639
         me._updateRadio(arg[0]);
640 640
     },