Everything posted by Aerojock
-
the RPN iterate{} operator
I found the MS documentation in this case deviates. The values for (A:AI TRAFFIC STATE, String) in my case contained the following: STATE_IFR_CLEARANCE STATE_PUSH_BACK_BEGIN STATE_PUSH_BACK_CONTINUE STATE_ENGINE_START STATE_WAITING_FOR_ENGINE_START STATE_PRE_TAXI_FOR_TAKEOFF STATE_TAXI_FOR_TAKEOFF STATE_TAXI_ONTO_RUNWAY STATE_TAKEOFF STATE_ENROUTE_AS_FILED STATE_FLY_UNTIL_NEXT_EVENT STATE_TRAFFIC_PATTERN STATE_TAXI_TO_PARKING STATE_WAIT_FOR_ENGINE_SHUTDOWN STATE_SUPPORT_POSTFLIGHT
-
the RPN iterate{} operator
Thank you very much for the help. My eyes, what a relief!
-
the RPN iterate{} operator
Thank you so much for your reply. My journey to understand this fascinating world is driven by the excitement and wrought by the unknowns. So, to further elaborate; the (A:AI TRAFFIC STATE, String) I plan to use this as a governor to display (A:AI TRAFFIC ASSIGNED RUNWAY, String), and (A:AI TRAFFIC ASSIGNED PARKING, String) only during certain stages of the flight. MSFS ATC does not appear to divulge the Parking Bay when instructed to go to a general area. Knowing the bay number when assigned in my view is helpful information. To answer your question, I am sure about it in the context I view it. From filing a flight plan to shutting down at the destination, the AI Traffic States change. Not all the ones listed are applied during the flight, some of them are. For me this is early days. Like I mentioned, it is a journey and thank you for your assistance by stretching my abilities. It is late, and there is a long weekend coming up. More time to mess with this then. Thx again, Ralph
-
the RPN iterate{} operator
Greetings! I wonder if this is the right place to look for this kind of help. MSFS2020 entertains a legacy simulation variable (A:AI TRAFFIC STATE, String). The string contains a description of the various flight stages in capital letters separated by the underscore character. I’m trying to display the contents of this variable on my Streamdeck mobile App. Because of the length, the Streamdeck reduces the font to fit the entire contents onto the button. There is an option to split the contents into multiple lines. But this works when the string contains spaces separating the words. I’m old, insinuating I have poor eyesight and therefore, wish for a result with the text underneath one another, thereby bigger so see without squinting. The following is the RPN I’m trying to achieve this with. The idea is to go through each character and check if it is an underscore. Change it to a space when so, and whalah! My expected result does not meet my wish. (A:AI·TRAFFIC·STATE,·String)·ss0 '' ss0·slen·0· iterate{ ss0·(0)·chr·95·==·if{·'·'·}·els{·chr·} ss1· ss1 } ss1·(>L:RLE-TFC-PHASE,·String) Does the iterate{} function work like this, or is here something I am overlooking? Below is another approach if attempted, but also just produces the original string. (A:AI·TRAFFIC·STATE,·String)·ss0 '' ss0·slen·0 iterate{ ss0·(p0)·chr·ds·95·==·if{··}·els{·ps·} ss1· ss1 } ss1·(>L:RLE-TFC-PHASE,·String) I will appreciate any help. Ralph