Results 1 to 9 of 9
Thread: Putting values in logic
-
06-01-2008, 05:52 AM #1
- Join Date
- Mar 2007
- Location
- Vancouver
- Posts
- 192
Putting values in logic
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.VANCOUVER
Jet fighter / single pilot sim, plus thinking of a 777 as a secondary sim.
-
06-01-2008, 08:24 AM #2
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
-
09-13-2008, 06:44 AM #3
- Join Date
- Mar 2007
- Location
- Vancouver
- Posts
- 192
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 usefulVANCOUVER
Jet fighter / single pilot sim, plus thinking of a 777 as a secondary sim.
-
09-14-2008, 12:50 PM #4
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
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.
-
09-14-2008, 02:51 PM #5
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
Paul,
The numbers are implied in the hi and lo cvalues for the FS Variable.
Regards,
Alan.
-
09-14-2008, 04:52 PM #6
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
-
09-14-2008, 07:12 PM #7
- Join Date
- Mar 2007
- Location
- Vancouver
- Posts
- 192
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
PaulVANCOUVER
Jet fighter / single pilot sim, plus thinking of a 777 as a secondary sim.
-
09-14-2008, 10:30 PM #8
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
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.
-
09-16-2008, 01:38 AM #9
- Join Date
- Mar 2007
- Location
- Vancouver
- Posts
- 192
Thanks Alan I vaguely remember seeing these now you mention it. I'll look again.
VANCOUVER
Jet fighter / single pilot sim, plus thinking of a 777 as a secondary sim.
Similar Threads
-
Putting What Where...???
By totalflyer in forum Computer Hardware SetupReplies: 11Last Post: 02-26-2009, 10:16 AM -
Low values for N1 and N2, and thanks.
By RobertoR in forum FS2Phidget UsersReplies: 2Last Post: 02-03-2005, 03:38 PM -
Values Not Responding
By anf92jc in forum FS2Phidget UsersReplies: 2Last Post: 12-17-2004, 02:10 AM -
[LOGIC] Center logic 0 Three position toggle switch
By null null in forum PM General Q & AReplies: 2Last Post: 11-24-2004, 04:42 PM
Search Prettys Womans from your city for night
5.Sharing an Essay about PIC16F877