lightning.nas 1013 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ################################
  2. ## English Electric Lightning F6
  3. ## Master Nasal
  4. ###
  5. # Main Initialise Function
  6. var init = func {
  7. print("Initialising EE Lightning Master Nasal:");
  8. eno.init();
  9. engines.engine1.init();
  10. engines.engine2.init();
  11. }
  12. ###
  13. # Engines
  14. var engines = {
  15. # Args: ( number, running, idle_throttle, max_start_n1, start_threshold, spool_time, start_time, shutdown_time)
  16. engine1: yasimengines.Jet.new(0 , 0 , 0.005 , 6 , 5 , 1.6 , 1.2 , 1),
  17. engine2: yasimengines.Jet.new(1 , 0 , 0.005 , 6 , 5 , 1.6 , 1.2 , 1),
  18. };
  19. ###
  20. # Doors (Canopy)
  21. # Args: ( property path, seconds, start position )
  22. var canopy = aircraft.door.new("canopy", 5, 1);
  23. ###
  24. # Lights
  25. var lightpath = "sim/model/lights";
  26. var lights = {
  27. anticoll: aircraft.light.new(lightpath~"/anti-coll", [0.05, 1.8], lightpath~"/anti-coll/powered"),
  28. };
  29. ###
  30. # Go!
  31. setlistener("sim/signals/fdm-initialized", func {
  32. settimer( init, 2);
  33. });