Hello,
I'm a newbie on fgfs, and try to understand how it works.
So following the wikipage (
http://wiki.flightgear.org/FG1000#Aircraft_Installation), I tried to install FG1000 into a panel in an existing aircraft (Piper Pa-32).
The configuration is
xubuntu 18.04
/sim/fg-root = /usr/share/games/flightgear/
fgfs data = /home/***/.fgfs/
my dedicated hangar to test = /home/***/Desktop/FLIGHTGEAR/MY_HANGAR/
FG1000 installation
In the dedicated Hangar, I create a ./Instruments3d/FG1000 repository
Should i get the dedicated xml files for the panel.xml from ./Instruments3d/FG1000 repository or from /usr/share/games/flightgear/Aircraft/Instruments-3d/FG1000/
In the dedicated_aircraft/nasal/
the "Loader_fg1000.nas" is placed with the following commands
- Code: Select all
var nasal_dir = getprop("/sim/fg-root") ~ "/Aircraft/Instruments-3d/FG1000/Nasal/";
io.load_nasal(nasal_dir ~ 'Interfaces/GenericInterfaceController.nas', "fg1000");
var interfaceController = fg1000.GenericInterfaceController.getInstance();
interfaceController.start();
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.getInstance();
# Create a PFD as device 1, MFD as device 2
#fg1000system.addPFD(1);
fg1000system.addMFD(2);
# Display the devices
fg1000system.display(1);
fg1000system.display(2);
- Code: Select all
var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance();
doesn't exist, should be replaced by
- Code: Select all
var interfaceController = fg1000.GenericInterfaceController.getInstance();
in the FG1000.nas, there is no command .addPFD
The nasal consol gives
- Code: Select all
unable to find ActiveFlightPlanWide at /usr/share/games/flightgear/Nasal/global.nas, line 36
called from: /usr/share/games/flightgear/Aircraft/instruments-3d/FG1000/Nasal/MFDPages/surround/Surround.nas, line 130
called from: /usr/share/games/flightgear/Aircraft/instruments-3d/FG1000/Nasal/MFD.nas, line 120
called from: /usr/share/games/flightgear/Aircraft/instruments-3d/FG1000/Nasal/FG1000.nas, line 109
called from : <nasal-console/#1>, line 15
and when the buttons are pressed
- Code: Select all
FG1000hardJeyPushed : No <offset> argument passed to fgcommand
PFD_Device: Could not locate page for button
So i do not understand how to create a good nas commands (separate file, where to include the load and start code, before modify the parameters to fit the aircraft).
It could be a great help if it exists an available aircraft with the FG1000 (for the moment the extra 500 panel can be copied, but it is not the FG1000, lol), and if possible a FG2000, FG3000 and FG5000 panels.
Many thanks.