View Full Version : Putting values in logic
Paul G
06-01-2008, 05:52 AM
I've been looking at the 'Expression Editor' in the variable editor. Seems you can build expressions but if you select a variable like altitude I cannot input a value. The numbers are not editable? Is this normal? Is my version of PS2P working correctly?
Also I was wondering where a definitive guide to variables (offsets) which can be programmed using a phidget, can be found. I messed around with the landing gear offsets, and yet found that the Nose wheel (at least on the aircraft I was trying) didn't change according to Phidgets, even though the sim and panel indicates that it is working. Perhaps not all aircraft support nose wheel values.
Thanks for your help.
AchillesP
06-01-2008, 08:24 AM
Also I was wondering where a definitive guide to variables (offsets) which can be programmed using a phidget, can be found. I messed around with the landing gear offsets, and yet found that the Nose wheel (at least on the aircraft I was trying) didn't change according to Phidgets, even though the sim and panel indicates that it is working. Perhaps not all aircraft support nose wheel values.
Thanks for your help.
Hi,
try this in pmsystems for the lights. Use the value (Landing gear handle) of phidget 4.3.6 for phidgets card and make them invert.
TransLeft = (LandGearLeft > 0) and (LandGearLeft < 16383)
TransRight = (LandGearRight > 0) and (LandGearRight < 16383)
TransNose = (LandGearNose > 0) and (LandGearNose < 16383)
DownLeft = (LandGearLeft = 16383)
DownRight = (LandGearRight = 16383)
DownNose = (LandGearNose = 16383)
Achilles
Paul G
09-13-2008, 06:44 AM
Hi Achilles.
Thank you. I don't use PM but I think the logic is the same. In the expression editor it doesn't seem possible to edit numerical values even though this might be useful
CocnutAir
09-14-2008, 12:50 PM
Paul,
What are you attempting to do?
Retract / Extend landing gear?
Display status if landing gear i.e. landing gear annunciators?
Which aircraft are you trying?
Regards,
Alan.
CocnutAir
09-14-2008, 02:51 PM
Paul,
The numbers are implied in the hi and lo cvalues for the FS Variable.
Regards,
Alan.
AchillesP
09-14-2008, 04:52 PM
Hi Achilles.
Thank you. I don't use PM but I think the logic is the same. In the expression editor it doesn't seem possible to edit numerical values even though this might be useful
Hi Paul,
Of cource no problem. As Alan said, gears are hi and low values. (0 for up, 16383 for down). You can use them to handle the gears and also to get the lights. Of cource then you will need a logic inside the phidgets for the lights to go off when the value is 16383 and when the master battery switch is off.
Achilles
Paul G
09-14-2008, 07:12 PM
Ah I see. So they aren't the actual bounds of the variable, so much as the values that John Simbuilder wants to activate a specific function?
What do I plan to do with this? Well I have a Warning and Fire annunciator, neither of which are much supported by present variables as far as I know. For the Warning though, the expression editor presents some examples of various configuration issues which could trigger a warning. I was thinking if I want to simulate a GPWS alert, I would need to be able to put in actual values, e.g. between surface and 500' with gear up and not in landing configuration.
I'm thinking ahead a bit, rather than having specific examples. Your response Alan does clarify it quite well so I may be able to work it out.
Thank you
Paul
CocnutAir
09-14-2008, 10:30 PM
Paul,
You could set up variables for the task at hand.
Perhaps a variable, say, AGL_500 with a range of values from 0 to 500, based on the offset for altitude.
I believe I posted a walk-though document, or perhaps is in the on-line help, where a number of variables are created for various control configurations to simulate unsafe configuration warning.
If you have problem locating that let me know.
Regards,
Alan.
Paul G
09-16-2008, 01:38 AM
Thanks Alan I vaguely remember seeing these now you mention it. I'll look again.