I had the same problem with the rotor brake. And this is what I found:
In FSX the rotor brake is modeled as the rotor brake of the r-22. In this helicopter the brake is a handle you have to pull to activate the brake. While you are pulling it, the brake is braking. But when you leave the handle (and stop pulling) the brake stops doing its function. So if in FSX you
use the k event (>K:ROTOR_BRAKE) , the brake will be activated only for a short moment and (A:rotor brake active,bool) will equal to
one only for a short period of time. So you can't use it for the animation of the brake lever.
The process is the following:
(>K:ROTOR_BRAKE) --> (A:ROTOR BRAKE ACTIVE,bool) = 1 -->after a few miliseconds and automatically--> (A:ROTOR BRAKE ACTIVE,bool) = 0
In most helicopters it is different. You put the rotor brake lever in the braking position AND if some requisites are met (hydraulic press in the
lh system in the case of the Superpuma) the brake will start to brake. While the brake lever remains in the same position, the brake will be active. I'm not sure, but I think the rotor brake in the alouette must be similar.
You can use the following code:
Code:
<PartInfo>
<Name>A3_lever_rotor_brake</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:rotor brake lever,bool) 100 *
</Code>
<Lag>50</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipID>TOOLTIPTEXT_ROTOR_BRAKE</TooltipID>
<MouseFlags>LeftSingle</MouseFlags>
<CallbackCode>
(L:rotor brake lever,bool) ! (>L:rotor brake lever,bool)
</CallbackCode>
</MouseRect>
</PartInfo>
And then, in the xml "logic" gauge add the following line (I add this in the <Update></Update> section) :
Code:
(L:rotor brake lever,bool) (L:lh hid press,bool) && if{ (A:ROTOR BRAKE ACTIVE,bool) ! if{ (>K:ROTOR_BRAKE) } 1 (>L:rotor brake on,bool) } els{ 0 (>L:rotor brake on,bool) }
What we do is to repeat the key event while the brake lever is in braking position (and lh hid press is true, you can change this condition to adapt the system to your helo). You can use the (L:rotor brake on,bool) as a rotor braking flag. It will be 1 if the braking is active and 0 if it's not. This is useful for
some helicopter systems (i.e. in most helicopters start up is inhibited while the rotor brake is active, or there's a warning light that
lights when the rotor brake is active).
In sum, you use two L variables to "trick" FSX rotor brake system. One for the lever position (on,off) and one as a flag to know when the
rotor brake is active.
Regarding the tail wheel lock, I must say I have not used this before. But perhaps some issue like that of the rotor brake is present. I suggest you
to modify an existing gauge in your panel to visualize the value of (A:Tailwheel Lock On,bool) and make some tries. Perhaps it doesn't work as you expect.