Sign in to follow this  
phjvh

Help with F104 Project problem (XML)

Recommended Posts

Gauge programming is not my thing...I am a graphics guy. Unfortunately, I wasn't able to get anyone to help me with my F104 project so I have attempted to do the job myself(almost done). I am stuck in a couple of areas and would REALLY appreciate any help provided. Ok, here's the question. I have a dummy switch called AUX TRIM CONTROL, in that same gauge I have several click spots that control Aileron Trim and Elevator Trim. I have the code setup properly with one exception; I want the click spots to only work when the AUX TRIM (atswitch) is ON, when it is OFF I do not want those click spots to work. Here's the code below:(L:atswitch,bool)(L:guard,bool)(L:guard,bool) if{ (L:atswitch,bool) ! (>L:atswitch,bool) }%Aux Trim Control (%((L:atswitch,bool))%{if}ON%{else}OFF%{end})(L:guard,bool) ! (>L:guard,bool)Stab Trim DownStab Trim UpStab Trim ResetWhat do I need to modify to make the above true? Lastly, I want to make 3 switches in one gauge called ROLL, PITCH and YAW. Each switch will have an ON/OFF function. When the switches are set to OFF I would like to disallow any movement of the Ailerons, Elevator and Rudder respectively. Is this possible? I know most people wont take the time to respond to this but if you do I would be very greatful. Thank you.-Virtual Pilot

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,Just an exampleMake the functional clickspot dependable of the dummy action:Say a switchguard "dummy": (L:dummy,bool) ! (>L:dummy,bool) and the funtion under it: (L:dummy,bool) if{ (L:function,bool) ! (>L:function,bool) }If the function is OFF, you can connect something with it: (L:function,bool) ! if{ (>K:ELEVATOR_SET) (>K:AILERON_SET) >K:RUDDER_SET) } Hope it helps,Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this