• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Deceleration Zone 'Ding' Alert

What is the initial value of all L:variables when the aircraft is first loaded?
If you answered ZERO you win a Gold Star.

Now, think carefully about your conditions:

(L:sound_played4,bool) 0 ==
(A:SIM ON GROUND, bool) 1 == and
(A:TRAILING EDGE FLAPS0 LEFT PERCENT, percent) 95 >
(A:AIRSPEED INDICATED,knots) 65 < and and

if{ 1 (>L:Sound_60k,number) 1 (>L:sound_played4,bool) and }

  1. When first loaded, (L:sound_played4,bool) 0 == will be TRUE
  2. When first loaded, (A:SIM ON GROUND, bool) 1 == will be TRUE
  3. When first loaded, (A:TRAILING EDGE FLAPS0 LEFT PERCENT, percent) 95 > might be TRUE if this is part of your "cold and dark" saved file.
  4. When first loaded, (A:AIRSPEED INDICATED,knots) 65 < will be TRUE

Since all of the above conditions are TRUE, obviously the entire statement is also TRUE, so of course the "sound will play!"

The extra "and" marked in red in the "action list" does absolutely nothing. It is simply ignored.

Hi Bill,
In this example 60kts is called after touchdown during the landing run. So from a cold cockpit point of view the full flaps would not be true. It's actually quite difficult to choose unique criteria because of course it's quite possible and normal to set full flaps on the ground. I chose it because it isn't in any of the pre-flight/pre-take-off checks whereas full spoilers "is!"

Taking the ands out of the if{} statements certainly shows that they are superfluous. However, for some reason leaving the other ands as they are means everything works ok and only once. Which for me is ok but as you say if someone is on a World tour! I need to reset the variables on landing.

I decided also to make some logic changes to the whole cabin/flightdeck interaction. Whilst writing this a thought has come up with which you may be able to help.

The checklists require that:-
1. I press the cabin call button twice as an instruction to the cabin crew to start the safety briefing and also to prepare the a/c for landing.
2. I press the cabin call button thrice to alert the cabin crew to take their seats for take-off.

My question is; "Can I get the ding to repeat two or three times by the just continuing to press the button until two or three dings are heard?"

The current code is
Code:
<Click Kind="LeftSingle+LeftRelease">
            (M:Event) 'LeftSingle' scmp 0 == if{ (L:CABIN CALL,number) ! (&gt;L:CABIN CALL,number)
     (L:CABIN CALL,number) 1 ==
 1 (>L:Sound_attend2a,enum)
if{ (P:local time, seconds) 1.15 + (>L:CAB LIGHT 2,number) } }
            (M:Event) 'LeftRelease' scmp 0 == if{ (L:CABIN CALL,number) ! (&gt;L:CABIN CALL,number)
     (L:CABIN CALL,number) 1 ==
0 (>L:Sound_attend2a,enum)
if{ (P:local time, seconds) 1.15 + (>L:CAB LIGHT 2,number) } }
        </Click>

the ding sound is (L:Sound_attend2a,enum) which is a single ding. as you can see there is also (L:CAB LIGHT 2,number) which I'm trying to get to stay on for as long as I press the button. However, the (L:CAB LIGHT 2,number) which is the "Steward's Light" on the OH is also controlled by the incoming cabin messages. It stays lit for each entire message to simulate the real event.

vololiberista
 
Have solved the repeating "ding" issue. But how can I get the light to stay on for the length of time "I" am pressing the button. Bearing in mind that the light is also illuminated by differing incoming messages of different lengths.
vololiberista
 
Have solved the repeating "ding" issue. But how can I get the light to stay on for the length of time "I" am pressing the button. Bearing in mind that the light is also illuminated by differing incoming messages of different lengths.
vololiberista

Make the control of the L:variable used for the light part of the mouse action.

With the button pressed, light is on
When you release the button or move the mouse off the button, the light goes out.

Example:
Code:
      <MouseFlags>LeftSingle+LeftRelease+LeftDrag</MouseFlags>
      <CallbackCode>
        (M:Event) 'LeftSingle' scmp 0 == if{ 1 (>L:T38_SetTrim,bool) 1 (>L:XMLSND2,bool) }
        (M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:T38_SetTrim,bool) }
        (M:Event) 'LeftDrag' scmp 0 == if{ 0 (>L:T38_SetTrim,bool) }
      </CallbackCode>

Note that this works well in a VC because often it's not possible to keep the mouse left-clicked on the button with the head-movement. This prevents the button from getting "stuck" in the on position.
 
The light is coded thus:-
Code:
<Value>
     (L:CAB LIGHT 2,number) (P:local time, seconds) &gt;
   </Value>
so that it stays on for the duration of messages activated by other gauges.
But with the call button, obviously I want the light to stay on only when the button is depressed. So there seems to be a conflict.
vololiberista
 
The light is coded thus:-
Code:
<Value>
     (L:CAB LIGHT 2,number) (P:local time, seconds) &gt;
   </Value>
so that it stays on for the duration of messages activated by other gauges.
But with the call button, obviously I want the light to stay on only when the button is depressed. So there seems to be a conflict.
vololiberista

Well, use another variable! You can use more than one at a time ya know... :duck:
 
Back
Top