Batman7617 Posted April 11, 2022 Posted April 11, 2022 Hi all, I have been putting together a little competition for our cadet wing, whereby the pilot will follow cues from smoke markers and complete the flight plan in a certain time. Got the smoke markers working perfectly, with additional audio announcements that I make using text to speech, the problem I have is setting a height limit from one waypoint to another half way round the flight plan, where if the pilot flies above an altitude of 500ft AGL, I'll have a repetitive action that will play a sound when ever the 500ft AGL is breached. There is a rectangular zone I have set up for the low fly zone, so basically what I want is a condition within a condition. I've set a condition where when the pilot "Unit Inside Zone" a flag is turned on . . . . I've also got a second zone at the end of the low fly zone to trigger "Unit Inside Zone" the above flag is turned off . . . . My question is, how do I then set up a trigger so it does the following? When flag "x" is on (Unit is inside low fly zone), "Unit Altitude Above AGL", "Play Sound to All" Any assistance will be greatly appreciated. Mike
dark_wood Posted April 11, 2022 Posted April 11, 2022 Use "Switched condition": Switched condition > When flag "x" is on (Unit is inside low fly zone), "Unit Altitude Above AGL" > "Play Sound to All"
Batman7617 Posted April 11, 2022 Author Posted April 11, 2022 5 hours ago, dark_wood said: Use "Switched condition": Switched condition > When flag "x" is on (Unit is inside low fly zone), "Unit Altitude Above AGL" > "Play Sound to All" Thanks dark_wood, I'm going to ask a very silly question now . . . . From a logic point of view, does each line after the first within the condition box assign a hidden "and" that stacks the logic, put another way, if I say . . . Trigger - 3 Switched Condition - Low Fly Breach Condition line 1 = Flag True (flag 25) - Unit is within low fly zone Condition line 2 = Units AGL Higher Than - (151m or 500ft) Action = Sound to All -(Klaxon Sound) Does this mean that the first condition is stating that flag 25 must be on And that the second condition relates to the first condition in that, flag 25 must be on AND units AGL must be higher than 500ft before the action will take place?
Rudel_chw Posted April 11, 2022 Posted April 11, 2022 50 minutes ago, Batman7617 said: From a logic point of view, does each line after the first within the condition box assign a hidden "and" Yes, there is an implicit AND between each line of the condition. You can also add OR between groups of lines, like this: 1 For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
Batman7617 Posted April 11, 2022 Author Posted April 11, 2022 Thanks for your responses guys, much appreciated. A whole raft of doors have just opened with this knowledge and I'm like a kid in a sweet shop 1
Recommended Posts