Swamech
-
Content Count
30 -
Donations
$0.00 -
Joined
-
Last visited
Posts posted by Swamech
-
-
On 9/14/2021 at 11:14 PM, Swamech said:SimBase.Document Type="AceXML" version="4,5" id="N1 Gauge"> <Descr>AceXML Document</Descr> <Filename>Test N1 Gauge.xml</Filename> <SimGauge.Gauge id="N1 Gauge" ArtDirectory="C:\Program Files\Lockheed Martin\Prepar3D v4\gauges\P3D_mini_panel"> <FloatPosition>0.000000,0.000000</FloatPosition> <Image id="n1_background.bmp" Name="n1_background.bmp"> <Transparent>True</Transparent> </Image> <Element id="n1 Pie 1"> <FloatPosition>68.000000,36.000000</FloatPosition> <Element id="Eng1 N1 Pie"> <FloatPosition>0.000000,0.000000</FloatPosition> <Pie id="Pie 1"> <Axis>52.000000,52.000000</Axis> <Bright>True</Bright> <Radius>52</Radius> <FillColorScript>(A:TURB ENG1 N1, percent) 103 > if{ 'red' } els{ 'gray' }</FillColorScript> <LineColor>White</LineColor> <StartAngleScript>0</StartAngleScript> <EndAngleScript>(A:TURB ENG1 N1, part) 2 * 100 * near 360 - abs</EndAngleScript> </Pie> <Rotation id="Rotation"> <Expression id="Expression"> <Script>(A:TURB ENG1 N1, part)</Script> </Expression> <NonlinearityTable id="NonlinearityTable"> <NonlinearityEntry id="NonlinearityEntry"> <ExpressionResult>0.000000</ExpressionResult> <Degrees>0.000100</Degrees> <FloatPosition>0.000000,0.000000</FloatPosition> </NonlinearityEntry> <NonlinearityEntry id="NonlinearityEntry"> <ExpressionResult>1.000000</ExpressionResult> <Degrees>200.000000</Degrees> <FloatPosition>0.000000,0.000000</FloatPosition> </NonlinearityEntry> </NonlinearityTable> </Rotation> </Element> </Element> <Element id="Element"> <FloatPosition>68.000000,36.000000</FloatPosition> <HorizontalLine id="HorizontalLine"> <Width>51</Width> <LineWidth>3</LineWidth> <LineColor>gray</LineColor> </HorizontalLine> </Element> <Element id="Arc"> <FloatPosition>0.000000,0.000000</FloatPosition> <Arc id="Arc"> <Axis>-14.000000,16.000000</Axis> <Radius>52</Radius> <LineWidth>3</LineWidth> <LineColor>white</LineColor> <StartAngle>205</StartAngle> <EndAngle>357</EndAngle> </Arc> </Element> <Element id="Red Line"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>3</LineWidth> <LineColor>red</LineColor> <Point id="Point"> <FloatPosition>12.000000,6.000000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>24.000000,14.000000</FloatPosition> </Point> </PolyLine> </Element> <Element id="ReadOut Box"> <FloatPosition>68.000000,4.000000</FloatPosition> <Rectangle id="Rectangle"> <LineWidth>3</LineWidth> <Width>75</Width> <Height>29</Height> </Rectangle> </Element> <Element id="'10' Tick Mark"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>2</LineWidth> <Point id="Point"> <FloatPosition>20.000000,18.000000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>27.000000,22.000000</FloatPosition> </Point> </PolyLine> </Element> <Element id="'9' Tick Mark"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>2</LineWidth> <Point id="Point"> <FloatPosition>17.000000,35.500000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>24.000000,35.500000</FloatPosition> </Point> </PolyLine> </Element> <Element id="'8' Tick Mark"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>2</LineWidth> <Point id="Point"> <FloatPosition>21.000000,54.000000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>26.000000,52.000000</FloatPosition> </Point> </PolyLine> </Element> <Element id="'7' Tick Mark"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>2</LineWidth> <Point id="Point"> <FloatPosition>35.000000,64.000000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>29.000000,69.000000</FloatPosition> </Point> </PolyLine> </Element> <Element id="'6' Tick Mark"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>2</LineWidth> <Point id="Point"> <FloatPosition>42.000000,81.000000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>47.000000,74.000000</FloatPosition> </Point> </PolyLine> </Element> <Element id="'5' Tick Mark"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>2</LineWidth> <Point id="Point"> <FloatPosition>61.000000,80.000000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>58.000000,87.000000</FloatPosition> </Point> </PolyLine> </Element> <Element id="'4' Tick Mark"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>2</LineWidth> <Point id="Point"> <FloatPosition>77.000000,87.000000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>76.000000,79.000000</FloatPosition> </Point> </PolyLine> </Element> <Element id="'3' Tick Mark"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>2</LineWidth> <Point id="Point"> <FloatPosition>94.000000,80.000000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>90.000000,75.000000</FloatPosition> </Point> </PolyLine> </Element> <Element id="'2' Tick Mark"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>2</LineWidth> <Point id="Point"> <FloatPosition>107.000000,69.000000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>101.000000,64.000000</FloatPosition> </Point> </PolyLine> </Element> <Element id="'1' Tick Mark"> <FloatPosition>0.000000,0.000000</FloatPosition> <PolyLine id="PolyLine"> <LineWidth>2</LineWidth> <Point id="Point"> <FloatPosition>116.000000,55.000000</FloatPosition> </Point> <Point id="Point"> <FloatPosition>110.000000,51.000000</FloatPosition> </Point> </PolyLine> </Element> <Element id="number 0"> <FloatPosition>100.000000,32.000000</FloatPosition> <GaugeText id="GaugeText"> <Bold>True</Bold> <Charset>arial</Charset> <FontColor>white</FontColor> <FontHeight>18</FontHeight> <GaugeString>0</GaugeString> <Size>10,18</Size> <Transparent>True</Transparent> </GaugeText> </Element> <Element id="number 2"> <FloatPosition>90.000000,48.000000</FloatPosition> <GaugeText id="GaugeText"> <Bold>True</Bold> <Charset>arial</Charset> <FontColor>white</FontColor> <FontHeight>18</FontHeight> <GaugeString>2</GaugeString> <Size>10,18</Size> <Transparent>True</Transparent> </GaugeText> </Element> <Element id="number 4"> <FloatPosition>70.000000,60.000000</FloatPosition> <GaugeText id="GaugeText"> <Bold>True</Bold> <Charset>arial</Charset> <FontColor>white</FontColor> <FontHeight>18</FontHeight> <GaugeString>4</GaugeString> <Size>10,18</Size> <Transparent>True</Transparent> </GaugeText> </Element> <Element id="number 6"> <FloatPosition>45.000000,55.000000</FloatPosition> <GaugeText id="GaugeText"> <Bold>True</Bold> <Charset>arial</Charset> <FontColor>white</FontColor> <FontHeight>18</FontHeight> <GaugeString>6</GaugeString> <Size>10,18</Size> <Transparent>True</Transparent> </GaugeText> </Element> <Element id="number 8"> <FloatPosition>28.000000,37.000000</FloatPosition> <GaugeText id="GaugeText"> <Bold>True</Bold> <Charset>arial</Charset> <FontColor>white</FontColor> <FontHeight>18</FontHeight> <GaugeString>8</GaugeString> <Size>10,18</Size> <Transparent>True</Transparent> </GaugeText> </Element> <Element id="number ' 1' in 10"> <FloatPosition>26.000000,12.000000</FloatPosition> <GaugeText id="GaugeText"> <Bold>True</Bold> <Charset>arial</Charset> <FontColor>white</FontColor> <FontHeight>18</FontHeight> <GaugeString>1</GaugeString> <Length>2</Length> <Size>10,18</Size> <Transparent>True</Transparent> </GaugeText> </Element> <Element id="number ' 1' in 11"> <FloatPosition>34.000000,12.000000</FloatPosition> <GaugeText id="GaugeText"> <Bold>True</Bold> <Charset>arial</Charset> <FontColor>white</FontColor> <FontHeight>18</FontHeight> <GaugeString>0</GaugeString> <Length>2</Length> <Size>10,18</Size> <Transparent>True</Transparent> </GaugeText> </Element> <Element id="Needle"> <FloatPosition>68.000000,35.000000</FloatPosition> <HorizontalLine id="HorizontalLine"> <Width>51</Width> <LineWidth>3</LineWidth> </HorizontalLine> <Rotation id="Rotation"> <Expression id="Expression"> <Script>(A:TURB ENG1 N1, part)</Script> </Expression> <NonlinearityTable id="NonlinearityTable"> <NonlinearityEntry id="NonlinearityEntry"> <ExpressionResult>0.000000</ExpressionResult> <Degrees>0.000100</Degrees> <FloatPosition>0.000000,0.000000</FloatPosition> </NonlinearityEntry> <NonlinearityEntry id="NonlinearityEntry"> <ExpressionResult>1.000000</ExpressionResult> <Degrees>200.000000</Degrees> <FloatPosition>0.000000,0.000000</FloatPosition> </NonlinearityEntry> </NonlinearityTable> </Rotation> </Element> <Element id="Percent Readout"> <FloatPosition>60.000000,6.000000</FloatPosition> <GaugeText id="GaugeText"> <FontColor>#FFFFFF</FontColor> <FontFace>Arial</FontFace> <FontHeight>20</FontHeight> <FontWeight>1</FontWeight> <GaugeString>%((A:TURB ENG1 N1, percent) abs)%!5.1f!</GaugeString> <HorizontalAlign>CENTER</HorizontalAlign> <Length>5</Length> <Size>70,20</Size> <Transparent>True</Transparent> <VerticalAlign>BOTTOM</VerticalAlign> </GaugeText> </Element> </SimGauge.Gauge> </SimBase.Document>
-
Just found this post. Have a working n1 gauge I designed with no mask images and working pie.. only image is background image and its 148 x95. Highlighted the Angle Script
<SimBase.Document Type="AceXML" version="4,5" id="N1 Gauge">
<Descr>AceXML Document</Descr>
<Filename>Test N1 Gauge.xml</Filename>
<SimGauge.Gauge id="N1 Gauge" ArtDirectory="C:\Program Files\Lockheed Martin\Prepar3D v4\gauges\P3D_mini_panel">
<FloatPosition>0.000000,0.000000</FloatPosition>
<Image id="n1_background.bmp" Name="n1_background.bmp">
<Transparent>True</Transparent>
</Image>
<Element id="n1 Pie 1">
<FloatPosition>68.000000,36.000000</FloatPosition>
<Element id="Eng1 N1 Pie">
<FloatPosition>0.000000,0.000000</FloatPosition>
<Pie id="Pie 1">
<Axis>52.000000,52.000000</Axis>
<Bright>True</Bright>
<Radius>52</Radius>
<FillColorScript>(A:TURB ENG1 N1, percent) 103 > if{ 'red' } els{ 'gray' }</FillColorScript>
<LineColor>White</LineColor>
<StartAngleScript>(A:TURB ENG1 N1, part)</StartAngleScript>
<EndAngleScript>(A:TURB ENG1 N1, part) 2 * 100 * near 360 - abs</EndAngleScript>
</Pie>
<Rotation id="Rotation">
<Expression id="Expression">
<Script>(A:TURB ENG1 N1, part)</Script>
</Expression>
<NonlinearityTable id="NonlinearityTable">
<NonlinearityEntry id="NonlinearityEntry">
<ExpressionResult>0.000000</ExpressionResult>
<Degrees>0.000100</Degrees>
<FloatPosition>0.000000,0.000000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry">
<ExpressionResult>1.000000</ExpressionResult>
<Degrees>200.000000</Degrees>
<FloatPosition>0.000000,0.000000</FloatPosition>
</NonlinearityEntry>
</NonlinearityTable>
</Rotation>
</Element>
</Element>
<Element id="Element">
<FloatPosition>68.000000,36.000000</FloatPosition>
<HorizontalLine id="HorizontalLine">
<Width>51</Width>
<LineWidth>3</LineWidth>
<LineColor>gray</LineColor>
</HorizontalLine>
</Element>
<Element id="Arc">
<FloatPosition>0.000000,0.000000</FloatPosition>
<Arc id="Arc">
<Axis>-14.000000,16.000000</Axis>
<Radius>52</Radius>
<LineWidth>3</LineWidth>
<LineColor>white</LineColor>
<StartAngle>205</StartAngle>
<EndAngle>357</EndAngle>
</Arc>
</Element>
<Element id="Red Line">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>3</LineWidth>
<LineColor>red</LineColor>
<Point id="Point">
<FloatPosition>12.000000,6.000000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>24.000000,14.000000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="ReadOut Box">
<FloatPosition>68.000000,4.000000</FloatPosition>
<Rectangle id="Rectangle">
<LineWidth>3</LineWidth>
<Width>75</Width>
<Height>29</Height>
</Rectangle>
</Element>
<Element id="'10' Tick Mark">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>2</LineWidth>
<Point id="Point">
<FloatPosition>20.000000,18.000000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>27.000000,22.000000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="'9' Tick Mark">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>2</LineWidth>
<Point id="Point">
<FloatPosition>17.000000,35.500000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>24.000000,35.500000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="'8' Tick Mark">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>2</LineWidth>
<Point id="Point">
<FloatPosition>21.000000,54.000000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>26.000000,52.000000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="'7' Tick Mark">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>2</LineWidth>
<Point id="Point">
<FloatPosition>35.000000,64.000000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>29.000000,69.000000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="'6' Tick Mark">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>2</LineWidth>
<Point id="Point">
<FloatPosition>42.000000,81.000000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>47.000000,74.000000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="'5' Tick Mark">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>2</LineWidth>
<Point id="Point">
<FloatPosition>61.000000,80.000000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>58.000000,87.000000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="'4' Tick Mark">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>2</LineWidth>
<Point id="Point">
<FloatPosition>77.000000,87.000000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>76.000000,79.000000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="'3' Tick Mark">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>2</LineWidth>
<Point id="Point">
<FloatPosition>94.000000,80.000000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>90.000000,75.000000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="'2' Tick Mark">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>2</LineWidth>
<Point id="Point">
<FloatPosition>107.000000,69.000000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>101.000000,64.000000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="'1' Tick Mark">
<FloatPosition>0.000000,0.000000</FloatPosition>
<PolyLine id="PolyLine">
<LineWidth>2</LineWidth>
<Point id="Point">
<FloatPosition>116.000000,55.000000</FloatPosition>
</Point>
<Point id="Point">
<FloatPosition>110.000000,51.000000</FloatPosition>
</Point>
</PolyLine>
</Element>
<Element id="number 0">
<FloatPosition>100.000000,32.000000</FloatPosition>
<GaugeText id="GaugeText">
<Bold>True</Bold>
<Charset>arial</Charset>
<FontColor>white</FontColor>
<FontHeight>18</FontHeight>
<GaugeString>0</GaugeString>
<Size>10,18</Size>
<Transparent>True</Transparent>
</GaugeText>
</Element>
<Element id="number 2">
<FloatPosition>90.000000,48.000000</FloatPosition>
<GaugeText id="GaugeText">
<Bold>True</Bold>
<Charset>arial</Charset>
<FontColor>white</FontColor>
<FontHeight>18</FontHeight>
<GaugeString>2</GaugeString>
<Size>10,18</Size>
<Transparent>True</Transparent>
</GaugeText>
</Element>
<Element id="number 4">
<FloatPosition>70.000000,60.000000</FloatPosition>
<GaugeText id="GaugeText">
<Bold>True</Bold>
<Charset>arial</Charset>
<FontColor>white</FontColor>
<FontHeight>18</FontHeight>
<GaugeString>4</GaugeString>
<Size>10,18</Size>
<Transparent>True</Transparent>
</GaugeText>
</Element>
<Element id="number 6">
<FloatPosition>45.000000,55.000000</FloatPosition>
<GaugeText id="GaugeText">
<Bold>True</Bold>
<Charset>arial</Charset>
<FontColor>white</FontColor>
<FontHeight>18</FontHeight>
<GaugeString>6</GaugeString>
<Size>10,18</Size>
<Transparent>True</Transparent>
</GaugeText>
</Element>
<Element id="number 8">
<FloatPosition>28.000000,37.000000</FloatPosition>
<GaugeText id="GaugeText">
<Bold>True</Bold>
<Charset>arial</Charset>
<FontColor>white</FontColor>
<FontHeight>18</FontHeight>
<GaugeString>8</GaugeString>
<Size>10,18</Size>
<Transparent>True</Transparent>
</GaugeText>
</Element>
<Element id="number ' 1' in 10">
<FloatPosition>26.000000,12.000000</FloatPosition>
<GaugeText id="GaugeText">
<Bold>True</Bold>
<Charset>arial</Charset>
<FontColor>white</FontColor>
<FontHeight>18</FontHeight>
<GaugeString>1</GaugeString>
<Length>2</Length>
<Size>10,18</Size>
<Transparent>True</Transparent>
</GaugeText>
</Element>
<Element id="number ' 1' in 11">
<FloatPosition>34.000000,12.000000</FloatPosition>
<GaugeText id="GaugeText">
<Bold>True</Bold>
<Charset>arial</Charset>
<FontColor>white</FontColor>
<FontHeight>18</FontHeight>
<GaugeString>0</GaugeString>
<Length>2</Length>
<Size>10,18</Size>
<Transparent>True</Transparent>
</GaugeText>
</Element>
<Element id="Needle">
<FloatPosition>68.000000,35.000000</FloatPosition>
<HorizontalLine id="HorizontalLine">
<Width>51</Width>
<LineWidth>3</LineWidth>
</HorizontalLine>
<Rotation id="Rotation">
<Expression id="Expression">
<Script>(A:TURB ENG1 N1, part)</Script>
</Expression>
<NonlinearityTable id="NonlinearityTable">
<NonlinearityEntry id="NonlinearityEntry">
<ExpressionResult>0.000000</ExpressionResult>
<Degrees>0.000100</Degrees>
<FloatPosition>0.000000,0.000000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="NonlinearityEntry">
<ExpressionResult>1.000000</ExpressionResult>
<Degrees>200.000000</Degrees>
<FloatPosition>0.000000,0.000000</FloatPosition>
</NonlinearityEntry>
</NonlinearityTable>
</Rotation>
</Element>
<Element id="Percent Readout">
<FloatPosition>60.000000,6.000000</FloatPosition>
<GaugeText id="GaugeText">
<FontColor>#FFFFFF</FontColor>
<FontFace>Arial</FontFace>
<FontHeight>20</FontHeight>
<FontWeight>1</FontWeight>
<GaugeString>%((A:TURB ENG1 N1, percent) abs)%!5.1f!</GaugeString>
<HorizontalAlign>CENTER</HorizontalAlign>
<Length>5</Length>
<Size>70,20</Size>
<Transparent>True</Transparent>
<VerticalAlign>BOTTOM</VerticalAlign>
</GaugeText>
</Element>
</SimGauge.Gauge>
</SimBase.Document>
-
On 1/22/2020 at 12:48 PM, julian2 said:Hello all,
I use for P3D a two monitor setup. On the main screen I have my 3D cockpit and on the second screen I have the PFD, ND and engine display. Would it be possible to create a 2D popup window with the flap and gear indicator?
Best regards
Julian ReichYes it is. All the windows in the 737NGXu are popups except the Main_Panel of course. So just use one of them as a template. Dont have the NGX so im not sure if there are gauges that you can use. Im assuming it does since it has a 2D panel. I had to code my own in The NGXu.
Cheers,
Chris Reed
-
Believe these are the failures you are looking for:
SYSTEM_ENGINE,
SYSTEM_PITOT_STATIC,
SYSTEM_VACUUM, SYSTEM_ELECTRICAL_PANELS,
SYSTEM_ELECTRICAL_AVIONICS, GAUGE_ADF, GAUGE_AIRSPEED,
GAUGE_ALTIMETER,
GAUGE_ATTITUDE,
GAUGE_COMMUNICATIONS, // Used for COM1
GAUGE_FUEL_INDICATORS,
GAUGE_GYRO_HEADING,
GAUGE_MAGNETIC_COMPASS,
GAUGE_NAVIGATION_VOR1, // only vor1
GAUGE_NAVIGATION_VOR2, // only vor2
GAUGE_TRANSPONDER,
GAUGE_TURN_COORDINATOR,
GAUGE_VERTICAL_SPEED, GAUGE_COMMUNICATIONS_COM2, // Used for COM2Cheers,
Chris
-
On 7/25/2020 at 8:50 PM, C2615 said:So basicly the magic is " ipc.elapsedtime() ", am I right?
Thanks for the help
Yes, you rotary speed has to compare the turning speed to something. You can adjust that of course by adjusting the 175 in the line if (HDG_INC_TIME - hdg_inc) < 175 then
And no problem!
-
Sorry this is late but here is what I programmed in the PMDG module for rotary speed. This is my heading rotary:
This is also assuming your rotary encoder is set up as a button press for increase and a button press for decrease.
Added Variables:
//////////////////////////////////////////////
local hdg_inc = 0
local hdg_dec = 0functions:
//////////////////////////////////////
function HDG_INC()
HDG_INC_TIME = ipc.elapsedtime()
if mcp_hdg_mode == 1 then
if (HDG_INC_TIME - hdg_inc) < 175 then
local i
for i = 1, 4 do ipc.control(PMDGBaseVar+390, PMDG_inc) end
else
ipc.control(PMDGBaseVar+390, PMDG_inc)
end
else
NGX_AP_BANK_inc()
end
NGX_AP_HDG_show()
hdg_inc = HDG_INC_TIME
end
function HDG_DEC()
HDG_DEC_TIME = ipc.elapsedtime()
if mcp_hdg_mode == 1 then
if (HDG_DEC_TIME - hdg_dec) < 175 then
local i
for i = 1, 4 do ipc.control(PMDGBaseVar+390, PMDG_dec) end
else
ipc.control(PMDGBaseVar+390, PMDG_dec)
end
else
NGX_AP_BANK_dec()
end
NGX_AP_HDG_show()
hdg_dec = HDG_DEC_TIME
endHope this sends you in right direction,
Chris
- 1
-
no problem.
Regards,
Chris
-
-800 is the exact same checklist as the -700
Regards,
Chris
-
Kevin,
Message me your email
Regards,
Chris
Alex,
Yes that is the current one for -700
Regards,
Chris
-
I can get you check lists for SWA. Which ones you need?? The normal checklist you have is the most current one though.
Regards,
Chris
-
Mark,
I entered it wrong. But turns out its not the function I needed for making course and fine adjustments on a encoder in linda. Did this instead:
function HDG_INC()HDG_INC_TIME = ipc.elapsedtime()if mcp_hdg_mode == 1 thenif (HDG_INC_TIME - Hdg_inc) < 150 thenlocal ifor i = 1, 4 do ipc.control(70022, 16384) endelseipc.control(70022, 16384)endelseNGX_AP_BANK_inc()endNGX_AP_HDG_show()Hdg_inc = HDG_INC_TIMEendfunction HDG_DEC()HDG_DEC_TIME = ipc.elapsedtime()if mcp_hdg_mode == 1 thenif (HDG_DEC_TIME - Hdg_dec) < 150 thenlocal ifor i = 1, 4 do ipc.control(70022, 8192) endelseipc.control(70022, 8192)endelseNGX_AP_BANK_dec()endNGX_AP_HDG_show()Hdg_dec = HDG_DEC_TIMEendChris -
Mark,
Thanks for the input. I believe it did say function event not found. Not at the house for a couple days so wont be able to check. But I will update after I look it over real carefully.
Chris
-
Hello everyone,
Adding some stuff to a aircraft module and trying to use event.timer function from the event.lua. When I run linda it says event cannot be found.
Any ideas why it is not finding the function from the event.lua.
Thanks,
Chris
-
Hello everyone,
I am trying to send values from SimConnect to a usb device. I would like to send some bool values for example MCP_annunFD[0] and CDU_annunEXEC[0] to the usb device to set some lights. I really dont know were to start. Im using PIC18f4550 and programming in C. Any help would be appreciated.
Thanks,
Chris
-
NG has been in service since 1997. Dont recall one breaking up in the air due to third party frame parts. Maybe Airbus put this story out!
Chris
-
ACARS cannot send commands to the FMGS. I keep reading these articles and still cannot figure out what he is trying to prove? So he can hack into and read/send ACARS msg's, he even said himself that doing anything further is only theoretically possible.
Exaclty, ACRAS has no direct control over anything, only a messaging system.
Chris
-
Believe it is 304 radial from SAN
-
You can actually start the engine real life, on a -700 with both packs on. Takes a while, but the apu is very strong on the NG.
-
Ok, so apparently you cannot stack images with masks over each other and put them in the same element header. they must each have a seperate element header. Works good now!
-
Got overjoyed to quickly! The images show up as the are supposed too statically, but moving they are jumpy and disappear and reappear repeatedly. Not sure why.
-
Figured it out! Had IMAGE_CONTAINS_MASK listed in the draw flags when I didnt need one.
Chris
-
Ok I have a problem trying to use 2 MAKE_SPRITE images over each other with each having a mask. Im making a HUD and the problem is with my attitude card and my horizon line which goes over the attitude card. One is always blocked by the other no matter which order I list them in. They both use the same exact mask image, but each MAKE_SPRITE image of course has its own mask, Is there a way to have both images use only one mask so the masks dont overlap each other and block the other one out?
Thanks,
Chris
-
yea my tape range was 0-60 for one range and 61-450 for the other. I still ended up breaking the tape down to 0-60, 61-200, 201-300, 301-450 just to get better accuracy. When I left it at 61-450 I lost some accuracy at the end of the range.
Chris
-
Dai,
That was it. Appreciate all you help. Those non-linearity tables are a lot easier in xml! But were is the challenge in that!!!
737NGX: Engine start levers position through SDK / FSUIPC
in PMDG 737NGX | 737NGXu
Posted
ENG 1 is L:switch_688_73X Idle=0 and Cutoff = 100
ENG 2 is L:switch_689_73X Idle=0 and Cutoff = 100