Switch Class

From FlightGear wiki
Revision as of 04:57, 2 December 2019 by Daweed (Talk | contribs) (Initial Création)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Segments switch Class Switch will be used to manage standard 2 position switches (only 1 input needed per switch) and is based on the MCP23017.

Switches Configuration File

Displays configuration file : /opt/fgint/Config/RadioPanel/switches.cfg
This file describes the 2 positions switches configuration used on the radio panel.
There are two separate parts in this file.

  1. a general configuration part, in the CONF and PROPERTIES sections.
  2. the other sections each describe a display.
[CONF]
confname=SWITCHES
library=FGIntSwitch
module=Switch
properylist=device,name,port,pin,values,valuestype,invert,node

[PROPERTIES]
prop01=device
prop02=name
prop03=port
prop04=pin
prop05=values
prop06=valuestype
prop07=invert
prop08=node

[RMP0PSW]
name=rmp0psw
device=IOPACK1
port=A
pin=2
values=0,1
valuestype=int
node=None
invert=0