one (hopefully last) issue on my Soloy project is driving me crazy.
I animated two Attitude Indicators (main is vacuum, backup is elec) and Turn Indicator with (A:ATTITUDE INDICATOR BANK DEGREES, degree). Only backup is caged with a flag.
What is working? All animations and the cage flag of backup.
Issues: if cage knop of backup is pushed - both Attitude Indicators (and Turn Indicator) are caged. Only Backup should be caged. Turn Indicator should have no parking modus...
There must be a way to seperate both attitude indicators (and turn indicator).
Main Attitude:
Backup Attitude:
And the Cage Switch + Cage flag:
And the Turn Indicator
My aircraft.cfg are
[attitude_indicators]
;/Type: 0=None, 1=Vacuum Gyro, 2=Electric Gyro
attitude_indicator.0 = 1
attitude_indicator.1 = 2
[turn_indicators]
turn_indicator.0 = 1
I have tried to work with indeces, but without success. Please give me a small light
...
Thomas
I animated two Attitude Indicators (main is vacuum, backup is elec) and Turn Indicator with (A:ATTITUDE INDICATOR BANK DEGREES, degree). Only backup is caged with a flag.
What is working? All animations and the cage flag of backup.
Issues: if cage knop of backup is pushed - both Attitude Indicators (and Turn Indicator) are caged. Only Backup should be caged. Turn Indicator should have no parking modus...
There must be a way to seperate both attitude indicators (and turn indicator).
Main Attitude:
Code:
<Animation name="sphere_bank" guid="39970976-AF0A-47BE-BCB0-42471AECD7ED" type="Sim" typeParam2="sphere_bank" length="360" typeParam="AutoPlay" />
<PartInfo>
<Name>sphere_bank</Name>
<AnimLength>360</AnimLength>
<Animation>
<Parameter>
<Code>(A:ATTITUDE INDICATOR BANK DEGREES, degree) dnor</Code>
</Parameter>
</Animation>
</PartInfo>
<Animation name="sphere_pitch" guid="F4D73A1B-C8E3-47E7-8164-2CC9C5579A29" type="Sim" typeParam2="sphere_pitch" length="120" typeParam="AutoPlay" />
<PartInfo>
<Name>sphere_pitch</Name>
<AnimLength>120</AnimLength>
<Animation>
<Parameter>
<Code>(A:ATTITUDE INDICATOR PITCH DEGREES, degree) 60 + </Code>
</Parameter>
</Animation>
</PartInfo>
Backup Attitude:
Code:
<Animation name="sphere_back_bank" guid="f4d7f2e9-3fd4-46ee-be1e-a127be485d4f" type="Sim" typeParam2="sphere_back_bank" length="360" typeParam="AutoPlay" />
<PartInfo>
<Name>sphere_back_bank</Name>
<AnimLength>360</AnimLength>
<Animation>
<Parameter>
<Code>(A:ATTITUDE CAGE,bool) 1 < if{ (A:ATTITUDE INDICATOR BANK DEGREES:1, degree) dnor } els{ 0 }</Code>
</Parameter>
</Animation>
</PartInfo>
<Animation name="sphere_back_pitch" guid="11a597a5-1e99-4b1e-a422-5df345704f8e" type="Sim" typeParam2="sphere_back_pitch" length="120" typeParam="AutoPlay" />
<PartInfo>
<Name>sphere_back_pitch</Name>
<AnimLength>120</AnimLength>
<Animation>
<Parameter>
<Code>(A:ATTITUDE INDICATOR PITCH DEGREES:1, degree) 60 + </Code>
</Parameter>
</Animation>
</PartInfo>
Code:
<Animation name="knob_cage_attitude" guid="00843e95-4b80-4702-b100-14d1602694bc" type="Sim" typeParam2="knob_cage_attitude" length="20" typeParam="AutoPlay" />
<PartInfo>
<Name>knob_cage_attitude</Name>
<AnimLength>20</AnimLength>
<Animation>
<Parameter>
<Code>(L:cage, bool) 0 == (A:ATTITUDE CAGE, bool) 0 == and if{ (>K:ATTITUDE_CAGE_BUTTON) 1 (>L:cage,bool) } (A:ATTITUDE CAGE,bool) 20 * </Code>
</Parameter>
<Lag>200</Lag>
</Animation>
<MouseRect>
<TooltipID>TOOLTIPTEXT_ATTITUDE_GYRO_CAGE</TooltipID>
<Cursor>Hand</Cursor>
<CallbackCode>(K:ATTITUDE_CAGE_BUTTON) ! (>K:ATTITUDE_CAGE_BUTTON) 1 (>L:Horflag,enum)</CallbackCode>
</MouseRect>
</PartInfo>
<Animation name="hor_flag_back" guid="e8a4b555-76cc-4970-9d69-e6cfd9dbb6c8" type="Sim" typeParam2="hor_flag_back" length="20" typeParam="AutoPlay" />
<PartInfo>
<Name>hor_flag_back</Name>
<AnimLength>20</AnimLength>
<Animation>
<Parameter>
<Code>(L:Horflag,enum) 20 * </Code>
</Parameter>
</Animation>
</PartInfo>
Code:
<Animation name="turn_indicator" guid="1d713398-66df-4c9c-8d88-ea7fd0ffc306" type="Sim" typeParam2="turn_indicator" length="90" typeParam="AutoPlay" />
<PartInfo>
<Name>turn_indicator</Name>
<AnimLength>90</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>ATTITUDE INDICATOR BANK DEGREES</Variable>
<Units>degrees</Units>
<Bias>45</Bias>
<MinValue>0</MinValue>
<MaxValue>90</MaxValue>
</Sim>
</Parameter>
</Animation>
</PartInfo>
[attitude_indicators]
;/Type: 0=None, 1=Vacuum Gyro, 2=Electric Gyro
attitude_indicator.0 = 1
attitude_indicator.1 = 2
[turn_indicators]
turn_indicator.0 = 1
I have tried to work with indeces, but without success. Please give me a small light
...
Thomas
Last edited: