FGUK1000(3).nas 868 B

1234567891011121314151617181920212223242526
  1. var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal/";
  2. io.load_nasal(nasal_dir ~ 'FG1000.nas', "fg1000");
  3. # Create the FG1000
  4. var fg1000system = fg1000.FG1000.getOrCreateInstance();
  5. # Create a PFD as device 1, MFD as device 2
  6. fg1000system.addPFD(1);
  7. fg1000system.addMFD(2);
  8. # Map the devices to placement objects Screen{i}, in this case Screen1 and Screen2
  9. fg1000system.display(1);
  10. fg1000system.display(2);
  11. # Show the devices
  12. fg1000system.show(1);
  13. fg1000system.show(2);
  14. # Display a GUI version of device 1 at 50% scale.
  15. #fg1000system.displayGUI(1, 0.5);
  16. var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal/";
  17. io.load_nasal(nasal_dir ~ 'Interfaces/GenericInterfaceController.nas', "fg1000");
  18. var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance();
  19. interfaceController.start();