Update README with factory calls.
This commit is contained in:
parent
4111887700
commit
3bab3b120e
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ piston engine.
|
|||
You need to load it as follows:
|
||||
|
||||
var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal/";
|
||||
var interfaceController = fg1000.GenericInterfaceController.new();
|
||||
var interfaceController = fg1000.GenericInterfaceController.getInstance();
|
||||
interfaceController.start();
|
||||
|
||||
You may want to create your own version depending on what properties you are
|
||||
|
@ -48,7 +48,7 @@ var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal
|
|||
io.load_nasal(nasal_dir ~ 'FG1000.nas', "fg1000");
|
||||
|
||||
# Create the FG1000
|
||||
var fg1000system = fg1000.FG1000.new();
|
||||
var fg1000system = fg1000.FG1000.getInstance();
|
||||
|
||||
# Create a PFD as device 1, MFD as device 2
|
||||
fg1000system.addPFD(1);
|
||||
|
|
Loading…
Add table
Reference in a new issue