1. ## Logic circuit

ok..I am totally lost. I am trying to set up a logic circuit for my LOW FUEL light. the idea is, it takes the total percentage output for each tank and then divides it by the number of tanks, giving an average of all tanks. I want my light to look at that total average and when it hits, lets say, 10% it will illuminate.

Problem, I have no idea how to assign that, or even use the logic circuit function for that matter.

Any help would be most appreciated.

PS I looked at teh enclosed pdf file and it doesnt help.

2. What plane? What software?

3. It is a generic sim, should be able to be used with all types of aircraft. I am using FSX and fs2phidgets.

4. You're wanting to do calculations. Logical expressions are all about ANDs and ORs.

5. then there is no way of doing what I need to do?

6. Do you have pmSystems installed ?

Next release will support:
- calculations

For now I wanted to get Phidget21 out.

7. Originally Posted by Alan Dyer
Next release will support:
- calculations
Alan,

Aha....... I thought that "calc" function was already included in the current new version based on some past conversation we've had. My misunderstanding on that one.

I mentioned to gokhotit in another forum (SimV) that I thought maybe the new realese of FS2Phidget would have that capability in it so he likely could do what he wanted with the new version. I've been so busy that I haven't had a chance to install the new version you just did (and that I downloaded) to try it out yet.

So.... it will be possible to do calcs...... we'll just have to wait a while longer. No problem.

When you do the "calcs" programming, if it is not TOO crazy much work, please see if you can make the following kind of logic/function available:

"If condition X exists for Time Y, then Offset Q= 453 And Output ZZ goes high (or low)."

One of the things that I want to implement is some definable system interaction of some core aircraft systems that re not inherent in the sim itself. So maybe for example if I have the engines running over redline for a certain amount of time, the oil quantity starts to decrease (burn up). Or if I run the engine over redline for a really LONG time..... I get an engine fire (there ARE four engine offsets for this condition in FS2004!). Or if I draw too much amperage for such and such a time on a generator, the generator performance begins to degrade and voltage output starts to drop. Or too much amperage for too long on a buss and it blows. You get the idea.

By being able to control both values at offsets AND outputs, we could then both change the in-sim performance conditions, and light up some annunciators at the same time.

best,

....................john

8. gokhotit,

You might have to go with my prior suggestion about changing the aircraft config file to combine ALL of the aircraft's fuel tanks into one single tank.... and then monitor that single offset for it's level. That would get you out of the woods for now until Alan adds the "calcs" into FS2Phidget.

Remember to adjust the aircrafts tank CG location and likey the MOIs too if the tanks were realisticaly placed to start with.

best,

..................john

9. Hi,
Just my experiences.
Using Opencockpits, SIOC allows me to do the calculations I need, and apply them to offsets that phidgets can use.
i.e. I can write some simple code that assigns variables to fuel state, and then if its true change the bit offset to 1 (for exmaple), which will then be used by Alans FS2Phidget.
Only tricky bit is to find offsets not used by FSUIPC, and won't interfere with plane.

Cheers
chris

10. Well, it is my professional opinion (and my inability to program), that I will be having to wait until next release, which I hope will be able to handle what i need.

I do not have PMsystems or any other fancy offset program installed (to poor, but on the christmas list ). I am doing this straight off the sim.

I do not know how to use the aircraft.cfg files that much to be able to reprogram them in the manner that is needed without f-ing something up. Besides that can be a pretty big task becaUSE i can use any type of aircraft with my sim.

JB, always a pleasure to hear from you, and your knowledge.

Alan, Hope this can be "food for thought" for the later release. but I must admit, without you, I would still be clicking on panels.