init2_page.nas 848 B

1234567891011121314151617181920
  1. # ==============================================================================
  2. # Original Boeing 747-400 pfd by Gijs de Rooy
  3. # Modified for 737-800 by Michael Soitanen
  4. # Modified for EC145 by litzi
  5. # ==============================================================================
  6. var p=nil;
  7. page_setup["init2"] = func (i) {
  8. p = mfd[i].add_page("init2", HELIONIXPATH~"svg/init2.svg");
  9. #p.add_text( "mfdID", {"sensor": adc.add( {"function": func sprintf("MFD%1i",i) , "timer": 1, "type": "STRING"}) });
  10. #var si = Sensor.new( { "prop": "instrumentation/mfd["~i~"]/initstep", "timer": SLOW});
  11. #p.add_cond( "Screen1", {"sensor": si, equals:1, "name":"screen1func"});
  12. #p.add_cond( "Screen2", {"sensor": si, equals:2, "name":"screen2func"});
  13. #p.add_cond( "Screen3", {"sensor": si, equals:3, "name":"screen3func"});
  14. }; # func