| CAPTAIN SIM FORUM | |
|
MSFS2020 >> C-130 Captain >> Sim event/variable/simconnect questions
https://www.captainsim.org/forum/csf.pl?num=1716345450 Message started by retiredflyer73 on May 22nd, 2024 at 2:37am |
|
|
Title: Sim event/variable/simconnect questions Post by retiredflyer73 on May 22nd, 2024 at 2:37am
I am de-micing my cockpit. I am programming buttons, etc. to my streamdeck. I can't find the following sim event or variable for the following buttons, knobs or dials:
heading bug autopilot glide or climb wheel autopilot turn wheel If at all possible I would appreciate it if you could tell me what these are since it will make flying so much easier not having to change windows and using a mouse. Thank you. |
|
Title: Re: Sim event or variable? Post by Captain Sim on May 23rd, 2024 at 11:27am
heading bug: L:L07_001_IND (0 - 359)
turn control knob: L:P17_001_KNB (from -30.0 to 30.0) pitch control knob: L:m133_AP_target_pitch (pitch mode must be ON) |
|
Title: Re: Sim event or variable? Post by retiredflyer73 on May 25th, 2024 at 6:06pm
Thank you for those and I got them working pretty well. Could you send me the "read back variable" for the "APU Start Switch"?
I can send the code to make it work but can't get a feedback variable that will operate my switch on my streamdeck. |
|
Title: Re: Sim event or variable? Post by Captain Sim on May 27th, 2024 at 6:02am retiredflyer73 wrote on May 25th, 2024 at 6:06pm:
L:O03_001_GL3 (0-OFF, 1-RUN, 2-START) |
|
Title: Re: Sim event or variable? Post by retiredflyer73 on May 29th, 2024 at 12:53am
Can you please give me the variable for the transponder? Thank You.
|
|
Title: Re: Sim event or variable? Post by Captain Sim on May 29th, 2024 at 6:25am
Please make a complete list and we'll cover it in one shot.
|
|
Title: Re: Sim event or variable? Post by retiredflyer73 on May 29th, 2024 at 1:41pm
Interior Lights:
Pilots Side: Flight Deck Dome RRU Co-Pilots Side: Flood Overhead Panel Lights RRU Exterior Lights: Nav: Flashing mode Center Pedestal: Sychrophase Master Prop Resynchrophase Upper Ovhd Panel: Pitot Heats Engine Inlet Airduct Anti-Icing Prop Ice Control (All four) Radios: ADF (Tuning and Volume) Transponder (Master and Code Changes) Also if any of these use a (feedback/read) variable other than than the code to make them work please send. I have a couple that I can control from my streamdeck but can't get the correct feedback to make switch on streamdeck correspond to switch in cockpit. Thank you for you help. |
|
Title: Re: Sim event or variable? Post by retiredflyer73 on Jun 1st, 2024 at 11:47pm
This is a revised list that I can't find variables for. Would you please help me out with this.
Upper Ovhd Panel: Engine Inlet Airduct Anti-Icing Radios: Transponder (Master) |
|
Title: Re: Sim event or variable? Post by Tinman on Jun 4th, 2024 at 1:15am
Are you willing to share you Stream Deck files? I would love to try them out. Perhaps I can get the autopilot to turn on this way.
|
|
Title: Re: Sim event or variable? Post by retiredflyer73 on Jun 4th, 2024 at 2:04pm
Absolutely. You will have to give me some guidance on sharing. All I have left on the C-130H is the transponder and the Engine Inlet Airduct Anti-Icing. Also bear in mind that I am not an expert on Axes and Ohs and am having issues with the knobs or switches with more than two positions. I get them to work but sometimes have to have to separate placements. Tell me how I can help you.
|
|
Title: Re: Sim event or variable? Post by Captain Sim on Jun 5th, 2024 at 6:26am retiredflyer73 wrote on Jun 1st, 2024 at 11:47pm:
Does that mean you don't need the list in the Reply #6 anymore? |
|
Title: Re: Sim event or variable? Post by retiredflyer73 on Jun 5th, 2024 at 12:01pm
That is correct as I've found all but the following:
Upper Ovhd Panel: Engine Inlet Airduct Anti-Icing Radios: Transponder (Master) Just need these two. |
|
Title: Re: Sim event or variable? Post by Captain Sim on Jun 6th, 2024 at 7:13am retiredflyer73 wrote on Jun 5th, 2024 at 12:01pm:
(A:ENG ANTI ICE:#ENG_ID#, Bool) (K:ANTI_ICE_TOGGLE_ENG#ENG_ID#) #ENG_ID# = 1, 2, 3, 4 Transponder (Master) (A:TRANSPONDER STATE:1, Enum) 0 - OFF 1 - STANDBY 3 - NORMAL |
|
Title: Re: Sim event or variable? Post by retiredflyer73 on Jun 6th, 2024 at 1:10pm
I just need the write event for the transponder. The read back A: you gave me works reading it back but it won't operate the switch. I need the K:, L:, or IE write event.
|
|
Title: Re: Sim event or variable? Post by retiredflyer73 on Jun 6th, 2024 at 9:59pm
Disregard last post. I got the A: working. Now I have everything you have modeled working from my streamdeck. Thank you. :)
|
|
Title: Re: Sim event or variable? Post by retiredflyer73 on Jun 7th, 2024 at 1:27pm
can you tell me the variable you used for the APU start light? I get it to come on after starting the APU but it does not go out as it's supposed to.
|
|
Title: Re: How to start a new topic? Post by skudd on Nov 25th, 2024 at 5:28pm
I'm trying to add the CS C-130 to an addon platform I am building, which uses SimConnect to set fuel loads (and eventually payloads). I've found though that "Tank No. 1" and "Tank No. 4" don't seem to have any representation in the documented simvars in SimConnect. I would have assumed them to be the "FUEL TANK LEFT MAIN" and "FUEL TANK RIGHT MAIN" values, but those are not implemented, it seems.
Am I missing something? Are these handled by a different simvar? Is it a bug in the addon? |
|
Title: Re: Sim event/variable/simconnect questions Post by Captain Sim on Nov 28th, 2024 at 10:43am skudd wrote on Nov 25th, 2024 at 5:28pm:
The C130 uses a fuel system, which is represented by different simvars. See variables starting with FUELSYSTEM in the SDK documentation. Regarding fuel tanks, see FUELSYSTEM TANK QUANTITY:INDEX, replacing INDEX with the desired tank index. Tank indices: 1: TANK NO.1 2: TANK NO.2 3: LEFT AUXILIARY 4: LEFT EXTERNAL 5: RIGHT_EXTERNAL 6: RIGHT AUXILIARY 7: TANK NO.3 8: TANK NO.4 Tank/pump/valve indices can be found in the [FUEL_SYSTEM] section of the flight_model.cfg Following simvars may also be useful: FUELSYSTEM TANK TOTAL QUANTITY:INDEX FUELSYSTEM TANK WEIGHT:INDEX FUELSYSTEM TANK LEVEL:INDEX |
|
Title: Re: Sim event/variable/simconnect questions Post by skudd on Dec 7th, 2024 at 7:04pm
Ah, perfect. I overlooked that in the API docs.
Thank you! |
|
Title: Re: Sim event/variable/simconnect questions Post by 7DR on Apr 4th, 2025 at 4:21pm
I'm building Air Manager instruments for the J model, and have questions on some autopilot functions.
Climb/Glide - using L:P17_002_KNB I can move the wheels fine, but nothing else happens. Using L:m133_AP_target_pitch seems to make control operate. Is this the best way? Turn knob - L:P17_001_KNB will move the knob, but again, nothing else happens. Heading Bug - L:L07_001_IND sets bug on HSI and that's it. I tried adding a number of different HEADING_ events with no success. Also, anybody know the readback variable for the DC power switch (off/bat/ext)? Any help is appreciated! Thanks to CS for bringing the 130 to msfs! |
|
Title: Re: Sim event/variable/simconnect questions Post by Captain Sim on Apr 8th, 2025 at 8:21am 7DR wrote on Apr 4th, 2025 at 4:21pm:
The problem is that not all controls work through only reading/writing the variable. In some cases, when you click, additional actions occur, for example, default events of the sim are triggered, etc. Moreover, some logic can be processed in wasm. Therefore, for example, rotating the Pitch/Turn knobs simply by assigning values to the P17_001_KNB/P17_002_KNB variables does not give the desired result. That is, it does not give the same effect as their full rotation by clicking or by assigned controls in the sim. Of course, you can always change the code in xml, if you understand how. Therefore, I can only advise you to look at q135_302_interior.xml and cs130_interior_common.xml. Search for the elements of interest there, see how they work and try to change them to suit your needs. Quote:
Same story. There is no variable for the position of this switch. Its position depends on the default systems of the sim and is determined by the code: <ANIM_CODE>(A:ELECTRICAL MASTER BATTERY:1, Bool) if{ 1 } els{ (A:EXTERNAL POWER ON:2, Bool) if{ 2 } els{ 0 } }</ANIM_CODE> The click code is even more complicated. I can only name the DC power code of the switch: O05_001_GL3. Search by this name in the above xml and see how it works. |
|
Title: Re: Sim event/variable/simconnect questions Post by 7DR on Apr 10th, 2025 at 4:19pm
Thank you for the reply and info. I'll check out the code and advise with any revelations.
Also, though it's off subject, the reverse thrust characteristics/performance could use some work - it's very weak. |
|
Title: Re: Sim event/variable/simconnect questions Post by 7DR on Apr 10th, 2025 at 6:44pm
I don't seem to have any ...interior.xml files. This was a ms store purchase. Only xml I have is 2 library files.??
|
|
CAPTAIN SIM FORUM » Powered by YaBB 2.6.0! YaBB Forum Software © 2000-2025. All Rights Reserved. |