534
edits
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
*MODULES : Modules configuration section. Modules that will be loaded into the interface object at creation. Should contain all devices configuration needed | *MODULES : Modules configuration section. Modules that will be loaded into the interface object at creation. Should contain all devices configuration needed | ||
*AUXCONF : Auxiliary configuration section. Auxiliary configuration files that will be loaded into the interface object at creation. Should contain all cockpit element configuration connected to the inferface. | *AUXCONF : Auxiliary configuration section. Auxiliary configuration files that will be loaded into the interface object at creation. Should contain all cockpit element configuration connected to the inferface. | ||
==== INT ==== | |||
The 'INT' section contains the name of the interface (intname) and the full path of the devices configuration file (deviceconf). | |||
==== MODULES ==== | |||
The 'MODULES' section contains the list of modules to be loaded.<br /> | |||
The configuration format is:<br /> | |||
Modulexx = LibFileName, Module Class name | |||
Library file are in the FGInt directory (''/opt/fgint/FGInt''). | |||
==== AUXCONF ==== | |||
The section 'AUXCONF' refers to the set of configuration files to be loaded describing the elements of the cockpit to be created in the interface.<br /> | |||
The configuration format is:<br /> | |||
configname = /full/path/config/file | |||
Auxiliary configuration files are int the Config directory (''/opt/fgint/Config''). | |||
=== Devices Configuration File === | === Devices Configuration File === | ||
/opt/fgint/Config/devices.cfg | Devices configuration file (<tt>''/opt/fgint/Config/devices.cfg''</tt>).<br /> | ||
For the radio panel we need 2 devices (One for input MCP23017 and one for displays and lights HT16K33) | |||
<syntaxhighlight lang="ini"> | <syntaxhighlight lang="ini"> | ||
[CONF] | [CONF] | ||
Line 46: | Line 65: | ||
=== Auxiliary Configuration File === | === Auxiliary Configuration File === | ||
/opt/fgint/Config/displays.cfg | The auxiliary configuration files contain all the elements of the cockpit. In the example, two auxiliary configuration files are defined in the general configuration of the interface. They will be analyzed and loaded during the creation of the RADIOPANEL interface. | ||
==== Displays Configuration File (''/opt/fgint/Config/displays.cfg'') ==== | |||
This file describes the configuration of the 7-segment displays of the radio panel.<br /> | |||
There are two separate parts in this file.<br /> | |||
# a general configuration part, in the CONF and PROPERTIES sections. | |||
# the other sections each describe a display. | |||
<syntaxhighlight lang="ini"> | <syntaxhighlight lang="ini"> | ||
Line 81: | Line 107: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
/opt/fgint/Config/switches.cfg | ==== Switches Configuration File (''/opt/fgint/Config/switches.cfg'') ==== | ||
This file describes the configuration of switch of the radio panel.<br /> | |||
There are two separate parts in this file.<br /> | |||
# a general configuration part, in the CONF and PROPERTIES sections. | |||
# the other sections each describe a switch. | |||
<syntaxhighlight lang="ini"> | <syntaxhighlight lang="ini"> | ||
[CONF] | [CONF] |
edits