• 热门标签

当前位置: 主页 > 航空资料 > 航空公司 >

时间:2010-09-29 17:02来源:蓝天飞行翻译 作者:admin
曝光台 注意防骗 网曝天猫店富美金盛家居专营店坑蒙拐骗欺诈消费者

pmsysXXXXX.txt file.
Section [bitmaps]
pmSystems loads a file called pmsystems.img into memory and extracts the bitmap graphics for single
elements or units from it. This part is not documented initially, but examples can be found inside the
configuration files themselves.
bitmap [element name], [position], [x1, y1, x2, y2], [offsetx, offsety], [sizefactor]
The element name can be anything like Switch, MySwitch, SmallKnob.
Position defines the various positions the bitmaps reflect of one particular switch, starting from 0. I.e. if you
have a knob with three positions, they have to be defined sequentially 0, 1, 2.
The x1,y1,x2,y2 coordinates are used to extract the image from the bitmap file.
The offsetx,offsety can be used to correct possible pixel imprecisions relative to the anchor point of the
element.
sizefactor 1.0 for 1:1 size or 0.5 for half size
Section [variables] or [vars] and sysvar.txt
pmSystems can read and write various types of FSUIPC variables, both normal ones used by FS, special
ones for pmSystems, and any variables used by other programs. To learn more about FSUIPC please go to
www.schiratti.com/dowson.html and check the program itself as well as the FSUIPC SDK.
The [variables] section should be in the file before the variables are actually used in the logics or element
section.
The variable names used within pmSystems can be sequences of alphanumeric characters, in one word.
The variable offsets themselves are always understood as hex values, i.e. 0x1234.
Project Magenta Revision: 12 March-08
58
Various types of variables can be defined. Single bytes, word, double words and bits.
Syntax:
[offset] [length] [variable_name] [factor]
3102 1 fsBattery
// the variable fsBattery is defined by offset 0x3102 and is one byte long... the value can be 0 to 255
04F4 2 pm4F4
// this would be an example for a WORD (2 bytes)
0808 4 fsYawDamper
// this doe a DWORD (4 bytes)
5600 .0 APUMasterFault
// 0x5600 to 0x56FF are internally reserved for pmSystems variables in this case a bit 0 of 0x5600
// bits would be defined .0 .1 .2 ... .7 and would always be 8 maximum... thus no bit 11
// the values are of course 0 and 1
Section [constants]
This section is used to define constants that can be used in the [logics] section.
The syntax is simply [constant_name]=[value]
E.g.:
[constants]
APUEGTLimit=560
[logics]
if (APUEGT > APUEGTLimit)
____APUEGTLimitLight = 1
else
____APUEGTLimitLight = 0
endif
Or, of course:
[logics]
APUEGTLimitLight = (APUEGT > APUEGTLimit)
Section [elements]
pmSystems itself is not aircraft type-specific. All the graphics and buttons and switches are defined inside
the aircraft configuration files, with the exception of some very particular gauges.
Project Magenta Revision: 12 March-08
59
In development mode, you can press Ctrl-F and the element closest to the mouse pointer is highlighted in
the configuration file... a text editor will then pop up and show it to you.
section mySection
this is a section name that will later be used for bookmarking or fast access
colour 255 RedComponent, BlueComponent, GreenComponent
colour255 60,113,143
definition of a colour via Red/Green/Blue with values from 0 to 255 (thus white is 255, 255, 255)
(in addition to that, predefined values are there such as colNGnorm, col747 etc.)
white (or red, green, blue, black, orange etc.)
defines the current colour used for simple graphics elements and texts
text String, X, Y, [FontSize]
text hello world, 333, 23.6
will write "hello world" on the coordinates X=333 and Y=23.6
vtext hello world, 333, 23.6, 2, 2.2
will write "hello world" vertically on the coordinates X=333 and Y=23.6 (with corrected spacing of 2 vertical
and 2.2 central)... difficult to explain, just try it.
line X1, Y1, X2, Y2
line 10, 20, -44.5, 33
will draw a line from (10,20) to (-44,33)
moveto 10, 20
lineto -44.5, 33
lineto 44.5, 12
will draw a line from (10,20) to (-44,33) and then on to (44.5,12)
box X1, Y1, X2, Y2
box 10, 20, -44.5, 33
rect X1, Y1, X2, Y2
rect 10, 20, -44.5, 33
will draw a box (outline) or rectangle (filled) from (10,20) to (-44,33) ... the sequence of the coordinates is
irrelevant
panelbox X1, Y1, X2, Y2
panelbox -122.0,137.0,71.0,53.0
this will draw a box with a light 3D effect, used for overhead panels, they need a colour command before
them or the box will be transparent white.
multibutton UpperText, LowerText, X, Y, SizeFactor, Colour, Variable1, Variable2
multibutton ON@,OFF,107.4,-121.1,1.1,wo,Eng1Bleed,Eng1BleedFault
 
中国航空网 www.aero.cn
航空翻译 www.aviation.cn
本文链接地址:Project Magenta USER MANUAL Revision: 12 March-08(20)