Jump to content
The simFlight Network Forums

Tbm 930 deice system


twnotter001

Recommended Posts

Good Evening,

I recently made a deice panel identical to the TBM 930 which I am having some issues with.  The prop deice and inertial separator work with my switches but there is no animation in the sim.  I am not able to get the windshield heat or R pitot heat to work as they are not included in any of the lists in mobiflight.  

I have very basic knowledge in this, a simple or well explained solution would be great.

 

Thank you

Link to comment
Share on other sites

7 hours ago, twnotter001 said:

I am not able to get the windshield heat or R pitot heat to work as they are not included in any of the lists in mobiflight. 

R pitot heat is listed in the MF preset list as using the following calculator code (see https://hubhop.mobiflight.com/#/presetview/06827297-b5d9-45e9-a692-6f8573cdd47f)
    2 1 (>K:2:PITOT_HEAT_SET) 1 (>L:DEICE_Pitot_2)
Have you tried that? It is using the Pitot Heat Set control, together with the DEICE_Pitot_2  lvar.
On fact, the following MF presets are available:

136013119_Image1.thumb.png.497e415550d969d2e6ebc5113f99aed2.png

And for windshield heat there are:

882883998_Image2.thumb.png.800e1af5edbde70bf7b5eb7c98f19a85.png

So windshield ice on is
    1 (>K:WINDSHIELD_DEICE_SET)
which can be achieved directly in FSUIPC7 using the event/control Windshield Deice Set with a parameter of 1 (K variables equate to MSFS/FSUIPC events or controls).

 

 

Link to comment
Share on other sites

16 minutes ago, twnotter001 said:

How do I access this list or does it have to be manually entered?  

Sorry, but I am not sure what you mean. I gave the link the to MobiFlight preset list in my previous comments - did you take a look?
You can use the MobiFlight presets directly if you wish, but you need to install the MobiFlight WASM module for them to work, together with an event file (or more) to make the MF events known to FSUIPC. There are various support topics on this.


Otherwise you can use the MF preset list to see what lvars/hvars/events are available and use them in your FSUIPC assignments.

John

Link to comment
Share on other sites

I had a quick look at the link, but if it is not in one of the pull down menus in mobiflight, I have the WASM module installed, I don't know how to proceed in order to make it work. I will try to find the topics that you mention.

I really appreciate the help, I am completely computer illiterate, I am just a guy that enjoys msfs who wants a more immersive experience. 

 

Nick

Link to comment
Share on other sites

15 minutes ago, twnotter001 said:

I had a quick look at the link, but if it is not in one of the pull down menus in mobiflight

Not sure what that means, or why that matters...

15 minutes ago, twnotter001 said:

I have the WASM module installed

The FSUIPC WASM or the MF WASM? To use the MF presets, you need the MF WASM also installed.
There are a bunch of event files for the MF WASM module that are included in your FSUIPC installation, in a sub-folder called EventFiles.
To use them, if you have the MF WASM installed, just move the files that you want to use into the main FSUIPC7 installation folder (i.e. up one level).
The presets should then be listed in the controls drop-down in the assignment panels.

Note I created those event files a while ago now, so they may be slightly out of date. You can always update them as required.

 

Link to comment
Share on other sites

7 hours ago, twnotter001 said:

R pitot heat turns on but will not turn off.

Did you try both the TBM930_PITOT_R_OFF and TBM930_Pitot_R_TOG presets? And also try executing the calc code using the Add-ons->WASM->Execute Calculator Code... menu option, with the following code:
    0 (>L:XMLVAR_Pitot_2) (L:XMLVAR_Pitot_1) ! (L:XMLVAR_Pitot_2) ! and (A:PITOT HEAT, bool) == if{ (>K:PITOT_HEAT_TOGGLE) }

7 hours ago, twnotter001 said:

I now have windshield heat working correctly,  prop deice and inertial separator works but still no animation

Maybe there are some hvars that control the animation, but if so I would have expected them to be used in the MF preset calc code. There are some presets for TBM930_ICE_LIGHT_ON/OFF but I guess that is not the same. I'll take a look later to see if I can see anything.

John

Link to comment
Share on other sites

2 hours ago, John Dowson said:
10 hours ago, twnotter001 said:

R pitot heat turns on but will not turn off.

Did you try both the TBM930_PITOT_R_OFF and TBM930_Pitot_R_TOG presets?

Yes I have tried both of these.

2 hours ago, John Dowson said:

 0 (>L:XMLVAR_Pitot_2) (L:XMLVAR_Pitot_1) ! (L:XMLVAR_Pitot_2) ! and (A:PITOT HEAT, bool) == if{ (>K:PITOT_HEAT_TOGGLE) }

I will try this tonight.

 

2 hours ago, John Dowson said:

TBM930_ICE_LIGHT_ON/OFF

This is for the light that illuminates the wing to see if you are picking up ice on the wing.

Link to comment
Share on other sites

12 hours ago, twnotter001 said:

I now have windshield heat working correctly,  prop deice and inertial separator works but still no animation.

Check the descriptive text in the MF preset app. For the Prop DeIce and Inertial separator, there is some descriptive text that explains why the animation isn't working since SU5 and a workaround. For example, here's what it says about Prop Deice On (TBM930_PROP_DE_ICE_ON):

Quote

  Turns the prop de-ice on, but due to a bug in SU5 the in-sim cockpit switch will not update. To work around the issue add the following to TBM930_interior.xml:

        <!-- ############################################### -->
  <Component ID="MobiFlight_External_Control">
      <UseTemplate Name="ASOBO_GT_Update">
          <UPDATE_CODE>
            (L:MF_TBM930_DEICE_Propeller_1_Set, Number) d 0 > if{ 1 - (&gt;B:DEICE_Propeller_1_Set) 0 (&gt;L:MF_TBM930_DEICE_Propeller_1_Set) }
          </UPDATE_CODE>
          <FREQUENCY>1</FREQUENCY>
      </UseTemplate>
  </Component>

Then do:

2 (>L:MF_TBM930_DEICE_Propeller_1_Set)

Similar fixes for Prop DeIce Off and Inertial Separator on/off.

For the windshield, using the control Windshield Deice Toggle works, including animation, for both on and off, and also the control Windshield Deice Set with a parameter of 1 for on and 0 for off.

For the R Pitot Heat Off, there looks to be an error in the calculator code:
    1 0 (>K:2:PITOT_HEAT_SET) 0 (>L:DEICE_Pitot_1)
should (most probably) be
    1 0 (>K:2:PITOT_HEAT_SET) 0 (>L:DEICE_Pitot_2) (** Update: should be "2 0 (>K:2:PITOT_HEAT_SET) 0 (>L:DEICE_Pitot_2)"  which works!**)
However, that also doesn't work. Also, the toggle function is documented as no longer working since SU5.

So, I'm not sure about the animation for R Pitot off. I suggest that you ask about this (and maybe mention the problem in the calc code) with MobiFlight on their discord channel (https://discord.com/channels/608690978081210392/804426413000097824). 

Later: I was just double checking this, and the calc code for the MF preset for R pitot off has now changed to this:
    0 (>L:XMLVAR_Pitot_2) (L:XMLVAR_Pitot_1) ! (L:XMLVAR_Pitot_2) ! and (A:PITOT HEAT, bool) == if{ (>K:PITOT_HEAT_TOGGLE) }
This sort of works.... If L and R are pitot heat are both on, it will turn both off. However, if R is on and L is off, it turns L on. Strange.
Changing this to:
     0 (>L:XMLVAR_Pitot_2) ! (L:XMLVAR_Pitot_2) ! and (A:PITOT HEAT, bool) == if{ (>K:2:PITOT_HEAT_SET) }
works for turning R pitot heat off, but also turns off L Pitot heat. Maybe worth checking with MF what the correct calc code should be (I'm no expert in this unfortunately - something I need to learn more about!).

John

 

 

Edited by John Dowson
Updated with working ccode
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.