twnotter001 Posted September 29, 2021 Report Share Posted September 29, 2021 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 More sharing options...
John Dowson Posted September 29, 2021 Report Share Posted September 29, 2021 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: And for windshield heat there are: 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 More sharing options...
twnotter001 Posted September 29, 2021 Author Report Share Posted September 29, 2021 Thank you for the quick reply. How do I access this list or does it have to be manually entered? I apologize for the newbie question but when it comes to this computer stuff I am completely clueless. Thank you. Link to comment Share on other sites More sharing options...
John Dowson Posted September 29, 2021 Report Share Posted September 29, 2021 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 More sharing options...
twnotter001 Posted September 29, 2021 Author Report Share Posted September 29, 2021 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 More sharing options...
John Dowson Posted September 29, 2021 Report Share Posted September 29, 2021 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 More sharing options...
twnotter001 Posted September 29, 2021 Author Report Share Posted September 29, 2021 I believe it is the WASM module in MF, at bottom of the screen there are 3 green check marks, MSFS, WASM, and FSUIPC. I will try what you have suggested tonight, I was not aware that I had to move some files. I will report back. Thanks again, very much appreciated. Link to comment Share on other sites More sharing options...
twnotter001 Posted September 30, 2021 Author Report Share Posted September 30, 2021 I did as you said John, moved the event files to the installation folder and selected the TBM, this worked great! I now have windshield heat working correctly, prop deice and inertial separator works but still no animation. R pitot heat turns on but will not turn off. Nick Link to comment Share on other sites More sharing options...
John Dowson Posted September 30, 2021 Report Share Posted September 30, 2021 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 More sharing options...
twnotter001 Posted September 30, 2021 Author Report Share Posted September 30, 2021 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 More sharing options...
John Dowson Posted September 30, 2021 Report Share Posted September 30, 2021 (edited) 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 - (>B:DEICE_Propeller_1_Set) 0 (>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 September 30, 2021 by John Dowson Updated with working ccode Link to comment Share on other sites More sharing options...
John Dowson Posted September 30, 2021 Report Share Posted September 30, 2021 Checked further and the following calculator code works for R Pitot Off: 2 0 (>K:2:PITOT_HEAT_SET) 0 (>L:DEICE_Pitot_2) I've also updated my previous comment with this correction. John Link to comment Share on other sites More sharing options...
John Dowson Posted September 30, 2021 Report Share Posted September 30, 2021 If you are using the MF events (rather than calculator code via lua) then you can change the calc. code by editing the file Community\mobiflight-event-module\modules\events.txt If you take a look at that file it should be obvious what you need to change. Link to comment Share on other sites More sharing options...
twnotter001 Posted September 30, 2021 Author Report Share Posted September 30, 2021 Thank you so much John, I really appreciate the help!! I'll look around MF, try to figure out how to edit the file. I wish I had more time to figure this stuff out a bit. Link to comment Share on other sites More sharing options...
twnotter001 Posted October 1, 2021 Author Report Share Posted October 1, 2021 Thanks John for all your help. I have it working now Nick Link to comment Share on other sites More sharing options...
John Dowson Posted October 1, 2021 Report Share Posted October 1, 2021 👍 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now