Hello everyone,
I wish to make a flaps control in the Virtual Cockpit. It is a 3 positions switch :
• When the switch is on neutral, nothing happens.
• When it is switched forward the flaps go back in for as long as the switch is kept in the forward position.
• When it is switched backward, the flaps come out for as long as the switch is kept in the backward positions.
• Finally, when you let go the switch, it must go back on neutral.
In the modeldef, I have created this code:
<PartInfo>
<Name>000-NORATLAS_Volets </Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Volets,number) 100 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<TooltipText>Rentrer Volets</TooltipText>
<CallbackCode>(L:Volets,number) ! (>L:Volets,number); (FLAPS_DECR)</CallbackCode>
</MouseRect>
</PartInfo>
However:
• The switch is only a 2 positions one : neutral forwards and back.
• The flaps don’t move.
This is far from being IT.
Thank you for your help.
I wish to make a flaps control in the Virtual Cockpit. It is a 3 positions switch :
• When the switch is on neutral, nothing happens.
• When it is switched forward the flaps go back in for as long as the switch is kept in the forward position.
• When it is switched backward, the flaps come out for as long as the switch is kept in the backward positions.
• Finally, when you let go the switch, it must go back on neutral.
In the modeldef, I have created this code:
<PartInfo>
<Name>000-NORATLAS_Volets </Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Volets,number) 100 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<TooltipText>Rentrer Volets</TooltipText>
<CallbackCode>(L:Volets,number) ! (>L:Volets,number); (FLAPS_DECR)</CallbackCode>
</MouseRect>
</PartInfo>
However:
• The switch is only a 2 positions one : neutral forwards and back.
• The flaps don’t move.
This is far from being IT.
Thank you for your help.



