John Dowson Posted February 7, 2022 Report Posted February 7, 2022 There is a version available, v7/2/16c, including an updated WASM, that has a 1k limit for the calculator code if you would like to try it. It can be found here: http://www.fsuipc.com/download/Install_FSUIPC7v7.2.16c.zip John 1
joeherwig Posted February 7, 2022 Report Posted February 7, 2022 Wow. That has been fast! Wilco. Thanks
joeherwig Posted February 7, 2022 Report Posted February 7, 2022 https://github.com/joeherwig/A32nx-LINDA-aircraft-module/blob/017b120227d9d2b5a2bb24fff0b685925425a237/A32nx/LINDA/aircrafts/FBW A320/user.lua#L12 shows the example for just two synced dimmers. (PFD + ND) if someone wants to map all display brightness it will become even longer. But the 1k you provided should definitely be a good value.
joeherwig Posted February 8, 2022 Report Posted February 8, 2022 On 2/7/2022 at 3:58 PM, John Dowson said: There is a version available, v7/2/16c, including an updated WASM, that has a 1k limit for the calculator code if you would like to try it. It can be found here: http://www.fsuipc.com/download/Install_FSUIPC7v7.2.16c.zip John Tried it with @ 10.23 / {value} max 100 min 88 (>K:2:LIGHT_POTENTIOMETER_SET) @ 10.23 / {value} max 100 min 89 (>K:2:LIGHT_POTENTIOMETER_SET) @ 10.23 / {value} max 100 min 8 (>K:2:LIGHT_POTENTIOMETER_SET) @ 10.23 / {value} max 100 min 92 (>K:2:LIGHT_POTENTIOMETER_SET) @ 10.23 / {value} max 100 min 93 (>K:2:LIGHT_POTENTIOMETER_SET) wich is >255 chars for CPT PFD, ND, ECAM1 and ECAM2 and works like a charm. Thanks a lot John!
John Dowson Posted February 15, 2022 Report Posted February 15, 2022 @joeherwig FY, I have just released v7.2.16, which allows you to define parameterized presets to assign and execute calculator code on a button press without needing to use lua. The MobiFlight presets are also included. Please see the Advanced User guide for details. John
joeherwig Posted February 15, 2022 Report Posted February 15, 2022 Hi John, that sounds great. I'll check it out. Joe
John Dowson Posted February 15, 2022 Report Posted February 15, 2022 Hi Joe, Please do, and if you haven't done this already, check out the MobiFlight HubHop website for presets/calculator code, and consider submitting any additional code there. It is the main community resource for MSFS calc code. Cheers, John
joeherwig Posted February 15, 2022 Report Posted February 15, 2022 I know it really well, but thanks for the hint. I'm sure plenty people of the community were not yet aware of it.
joeherwig Posted September 21, 2022 Report Posted September 21, 2022 Since John added already the capability to use parameterized CalculatorCode Presets on axes as well i just added the dimmers now based on that standard mode: Just add the lines for your myevents.txt A32NX_LIGHT_POTI_CPT_PFD#@ 10.23 / $Param 16384 + 327.86 / max 100 min 88 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_CPT_ND#@ 10.23 / $Param 16384 + 327.86 / max 100 min 89 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_CPT_WX_TERR#@ 10.23 / $Param 16384 + 327.86 / max 100 min 94 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_CPT_CONSOLE#@ 10.23 / $Param 16384 + 327.86 / max 100 min 8 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_FO_PFD#@ 10.23 / $Param 16384 + 327.86 / max 100 min 90 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_FO_ND#@ 10.23 / $Param 16384 + 327.86 / max 100 min 91 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_FO_WX_TERR#@ 10.23 / $Param 16384 + 327.86 / max 100 min 95 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_CPT_CONSOLE#@ 10.23 / $Param 16384 + 327.86 / max 100 min 9 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_FCU#@ 10.23 / $Param 16384 + 327.86 / max 100 min 87 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_ECAM_UPPER#@ 10.23 / $Param 16384 + 327.86 / max 100 min 92 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_ECAM_LOWER#@ 10.23 / $Param 16384 + 327.86 / max 100 min 93 (>K:2:LIGHT_POTENTIOMETER_SET) A32NX_LIGHT_POTI_DISP+INTEGLT#@ 10.23 / $Param 16384 + 327.86 / max 100 min 88 (>K:2:LIGHT_POTENTIOMETER_SET) @ 10.23 / $Param 16384 + 327.86 / max 100 min 89 (>K:2:LIGHT_POTENTIOMETER_SET) @ 10.23 / $Param 16384 + 327.86 / max 100 min 93 (>K:2:LIGHT_POTENTIOMETER_SET) @ 10.23 / $Param 16384 + 327.86 / max 100 min 92 (>K:2:LIGHT_POTENTIOMETER_SET) @ 10.23 / $Param 16384 + 327.86 / max 100 min 87 (>K:2:LIGHT_POTENTIOMETER_SET) @ 10.23 / $Param 16384 + 327.86 / max 100 min 85 (>K:2:LIGHT_POTENTIOMETER_SET) @ 10.23 / $Param 16384 + 327.86 / max 100 min 86 (>K:2:LIGHT_POTENTIOMETER_SET) and then assign it in FSUIPC directly: 1
John Dowson Posted September 21, 2022 Report Posted September 21, 2022 Thanks @joeherwig. I thought I had removed axes assignments to presets as I wasn't sure if this was that useful and am uncertain about the performance when controlling an axis using calculator code. I added the preset checkbox to allow presets to be used in the right-hand side, but this also has the effect of allowing the preset to also be assigned to the axus input. This isn't an issue in itself, but I think there may be some issues when reviewing an axis assignment to a preset - I will check this and also update the documentation for this. Cheers, John
joeherwig Posted September 21, 2022 Report Posted September 21, 2022 Hi John, If you keep that "side effect" it would be very nice. 👍 If you can adjust it to refer to the name instead of the line index (or whatever it is) it would be perfect. 👍👍👍🧡 As at least on my quite old system with quad core and 1080ti only i cannot notice any performance impact even with the really long combination of multiple calculator codes. Joe
John Dowson Posted September 21, 2022 Report Posted September 21, 2022 1 hour ago, joeherwig said: If you can adjust it to refer to the name instead of the line index (or whatever it is) it would be perfect. 👍👍👍🧡 Could you try the attached beta please, 7.3.9e. This should automatically re-write your ini to use the preset name when assigned to an axis, although you may have to go into the axis assignment dialog and click 'OK' to update. Thanks, John FSUIPC7.exe 1
joeherwig Posted September 21, 2022 Report Posted September 21, 2022 1 hour ago, John Dowson said: Could you try the attached beta please, 7.3.9e. Wow! That's been awesome fast. Thanks. I'll check it tonight if the Su10 download doesn't block me too long.
joeherwig Posted September 22, 2022 Report Posted September 22, 2022 20 hours ago, John Dowson said: Could you try the attached beta please, 7.3.9e. This should automatically re-write your ini to use the preset name when assigned to an axis, although you may have to go into the axis assignment dialog and click 'OK' to update. Hi John, Works like a charm in 7.3.9e. Thanks a lot! 0=DX,256,F,PA32NX_LIGHT_POTI_DISP+INTEGLT,0,0,0 -{ TO SIM: Preset Control }- 11=DY,256,F,PA32NX_LIGHT_POTI_FO_PFD,0,0,0 -{ TO SIM: Preset Control }-
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