Jump to content
The simFlight Network Forums

DaveSCUSA

Members
  • Posts

    102
  • Joined

  • Last visited

Everything posted by DaveSCUSA

  1. Also, having difficulty with offset conditions with keyless programming in the C510.ini. I want to toggle the starter keypress based on its variable.
  2. 1. Can an LVar be added to an offset - 0x66C6, 2, L:switch_fuel_left, Enum, w? Would be valuable to use with compound button/key press. What kind of variables can be used?
  3. John, I'm having difficulty finding the answer. Could you please provide the location of the answer or answer here. I want to find out when on can make changes to FSUIPC7 files and when in the flight will FSUIPC7 restart using the files in the MSFS flight sequence? 1. FSUIPC7.ini - restart flight, restart aircraft, restart MSFS?, 2. Profile C510.ini - restart flight, restart aircraft, restart MSFS?, myevents.txt - restart flight, restart aircraft, restart MSFS? Thanks
  4. This question is specific to the C510. The only non-Input Event control is the left and right fuel valves (located on the throttles). I can easily use a preset for these controls. The question is, "is there any other option to set up a push on/push off keypress to on and off input events other than Lua". It is known that presets cannot set input events. Having said that, the RPN code in templates can set BVars as shown in previous code you sent. Is there any chance that setting BVars will be available in presets?
  5. I guess now the biggest dilemma I have is how to toggle with momentary key presses (press on, press again off). I have a keypad that sends multiple keys on a press. Starters are pressed on then off on release. I would like to have fuel valves and ignition switches tur on with a press and off with a second press and using input events with all keys. How would I do that using the key assignments UI? The alternative I guess is lua?
  6. Thank you, very comprehensive. Perhaps I am making the interface too complicated. I try to use the same technique for all buttons on a device. All in presets, UI assignments or Lua. Because I lost trust in myself using Lua, I started using controls or Simvars, Simevents. I used presets to allow separation of on/off of toggle events. One can test a variable to exercise an event. As input events cannot be manipulated in presets, I tended to stay away from the input events. Thru you input, I will use input events only. The C510 panel screenshot is from a contributor to AirManager and is used on a touchscreen monitor. A useful visual tool when not using the VC.
  7. Thanks again, The difficulty I am having is trying to keep all button and key executions in one area. Not some in the button/key press in the profile ini and some in the myevents.txt. The myevents.txt is used when I want to use the Calc Code. I am well aware of the C510 events - input events to use. I do avoid using the input events as they some times don't work. The attached is list of events and input events discovered while using the FSUIPC7 log with the sim displayed cockpit. It also contains the LVars listed for the C510. Do the Input Events consistently work? C510 Ini Vals.txt
  8. Thank you John, I guess I ignore the calc code error. I will test each switch in detail and provide you details. Thank you for your time. I have, in some cases, reassigned the keys with the UI. Is the Air Manager information valuable?
  9. Hello John again, I understand the effort you have to make to analyze these items. Highly appreciated. As I ama retired systems engineer, I am most disappointed in myselfI can't seem to move ahead. I have spent six months trying to get all these buttons and keys to work with the C510 in my home built cockpit (the Diamond DA62 seems to work fine). I use Air Manager as a contributor created the full C510 cockpit using Simconnect. I had several [ERROR]: Error setting Client Data Calculator Code entries in the FSUIPC7 log. One was 51922 [ERROR]: Error setting Client Data Calculator Code [-2147467259]: '1 (>K:MASTER_BATTERY_OFF) 0 (>A:ELECTRICAL MASTER BATTERY, bool)'. I removed the variable and will test this afternoon. The SDK says the battery variable can be set but it's the only item I can see that may be in error. However, I also received this error: 52141 [ERROR]: Error setting Client Data Calculator Code [-2147467259]: '0 (>K:ELECT_FUEL_PUMP1_SET)' and can't understand why the error as the SDK description shows the event is correct. 1. Can you describe what these errors mean? They happen during the loading of MSFS 2. Canu you help with the Pump Set error. 3. I also pulling my hair out (I am bald) with buttons/keys working or not working (not the same button/key working and then not working). The key master battery works and shows in the cockpit but the avionics switch doesn't. The code between the two is shown in Air Manager Lua (Not too different in concept from FSUIPC7). I just use Air Manager as a test tool when I'm starting from cold and in the landing view (outside the cockpit. The code for the battery and avionics are (using Simconnect): --BATTERY function callback_batt(position) if position == 0 then switch_set_position(sw_batt, 1) fs2020_event("MASTER_BATTERY_ON") elseif position == 1 then switch_set_position(sw_batt, 0) fs2020_event("MASTER_BATTERY_OFF") end end sw_batt = switch_add("sw_big_rd_middle.png", "sw_big_rd_up.png", 180, 58, 45, 119, callback_batt) function ss_batt(batt_on) if batt_on then switch_set_position(sw_batt, 1) else switch_set_position(sw_batt, 0) end end fs2020_variable_subscribe("ELECTRICAL MASTER BATTERY", "Bool", ss_batt) --AVIONICS function callback_avion(position) if position == 0 then switch_set_position(sw_avion, 1) fs2020_event("AVIONICS_MASTER_SET", 1) elseif position == 1 then switch_set_position(sw_avion, 0) fs2020_event("AVIONICS_MASTER_SET", 0) end end sw_avion = switch_add("sw_big_dwn.png", "sw_big_up.png", 382, 59, 45, 114, callback_avion) function ss_avion(avion_on) if avion_on then switch_set_position(sw_avion, 1) else switch_set_position(sw_avion, 0) end end fs2020_variable_subscribe("AVIONICS MASTER SWITCH", "Bool", ss_avion) FSUIPC7.ini FSUIPC7.log C510.ini myevents.txt
  10. PS - You have stated you didn't have RPN documentation and didn't know where to find. Burried in MSFS documentation. RPN Syntax.pdf
  11. I was referring to your use of the RPN Stacking S0 I0 as in: (L:FSUIPC_C510_Ignition_1, Number) s0 l0 0 > if{ 0 (>L:FSUIPC_C510_Ignition_1) 1 (>B:ENGINE_Ignition_1_Toggle) } Instead of the variable L:FSUIPC_C510_Ignition_1 directly: (L:FSUIPC_C510_Ignition_1, Number) > 0 if{ 0 (>L:FSUIPC_C510_Ignition_1) 1 (>B:ENGINE_Ignition_1_Toggle) }
  12. I execute from "C:\Users\dhsim\FSUIPC7\FSUIPC7.ini". The "C:\Users\dhsim\Desktop\MSFS\FSUIPC7\FSUIPC7.ini" location is a folder shared among 2 PCs to share files. Was writing from memory. It was the Project Magenta button. I revisited the post. I had forgotten the applicability. I would like to ask why is stacking used? Not just using the variables.
  13. Hi John, I'm having a few problems understanding assignments and profiles and how to fix the problems. After an update, I wanted to change the C510 Profile. MSFS wasn't appearing to find the Cockspur C510 Profile and exercising the assignments. I decided to try to start over without reassigning the buttons and keypresses. I took out any reference to the C510 profile in the FSUIPC7.ini and renale the C510.ini file in the Profiles folder. 1. After starting MSFS and an attempt to add a new profile and new Bravo Parking Brake button assignments, the assignments did not ask for a new profile (the profile radio button was pressed). The button assignment screen showed the C510 profile at the top although the profile entry was remove from the FSUIPC7.ini file and the profile .ini file was renamed to TestC510.ini. 2. At the time of assigning buttons, the controls redio button and the preset radio button was grayed out. The PMDG and InputEvent redio buttons were available (I wanted to change the preset assignments). As a further test, I tried reassinging a keypress which had no restriction. Have you added any presets or button assignments for the C510 starter buttons and or the Fuel Valve buttons on the throttles (left and right)? Could you share whatever you have working. I'm having difficulty finding the binding for those switches, a combination of events and inputevents. Another item, please. Can you add a choice to not list the InputEvents in the log when choosing the InputEvent logging of assignments? Thanks FSUIPC7.ini FSUIPC7.log C510.ini
  14. Thanks, I did allow the trojan in the security. I have to disallow it now. I'll try it now.
  15. PS - The confusing thing, I bet for many of us, is that I have the firewall and defender off (too many resources used). I scan at midnight. With all that off, Windows still killed it. ???
  16. Thanks, can you put it at the top like the "Trial License" post? At least it will be seen as a person creates a new topic.
  17. You were right and I was wrong. I found (not easy) your work around and I installed 7.4.11. Thanks. Perhaps you could put the work around in its own post.
  18. Hello John, Like many, I receive a virus message with ver. 3.4. I have windows firewall and defender shut off. The router has a firewall that recognizes my IP address for a legitimate return of a request. My Chrome download still shows a virus with the download. Running Ver 3.4.12 on the server and Ver 3.4.11 on the client. I downloaded the 3.4 executable (FSUIPC7.exe) from the forum. I now receive the following error: 7914593 [ERROR]: **** The installed WASM version is 1.0.2 while the WAPI is expecting WASM version 1.0.3. Please update the WASM module as this may cause issues. Perhaps there isn't an issue with Windows Defender. I am running Windows 11 on my server and Windows 10 on my client and FSUIPC7 on both. The firewall and defender are off on both pcs. The message from the client is: 8729454 [INFO]: **** Starting FSUIPC7 WASM Interface (WAPI) version 1.0.4 (WASM version 1.0.3) using connection -1 VFSUIPC7.log FSUIPC7.log
  19. PS Do all (A:, (K:, (L: entries require a >? Can your recommend a document that explains? I had a tutorial for syntax in FSX gauges, but can't find it. The XML there is fairly straightforward, but the RPN needed explanation which I had. Wonder why MSFS had to make it so difficult to understand
  20. Thanks John, I used the wrong variable. Using ELEVATOR TRIM POSITION, radians instead to down -60 (-10°) to up 60 (10°). Perhaps I'll split the presets with a delay between. I realized after I said it that presets can't manipulate Input Events. Are you going to provide the C510 Input Events / Events you find to the public?
  21. I want to increase/decrease the The elevator trim using the trim wheel on my Bravo. The switches dont seem to have much control thru the MSFS Controls with the wheel. I want to slow down the rate on the down and up switches. I read another post to increment/decremet the trim by 128 bips. I have tried to create two presets (dn & up). Would you please check the syntax for me. Thanks DA62_Elev_Trm_Dn#(A:Elevator Position, number) (>L:Elevator_Angle_Trim, number) (L:Elevator_Angle_Trim, number) 128 - -16383 Min (L:Elevator_Angle_Trim, number) (>A:Elevator Position, number) DA62_Elev_Trm_Up#(A:Elevator Position, number) (>L:Elevator_Angle_Trim, number) (L:Elevator_Angle_Trim, number) 128 + 16383 Max (L:Elevator_Angle_Trim, number) (>A:Elevator Position, number)
  22. Hello John, Though all your help, I have been able to get all keypresses for the DA62 to work. Thanks. I found the delay control ( 1152 ) you provide very helpful in controlling Keypresses when MSFS responds too quickly. Is there a Sim Variable that is set? I would like to use it in Presets if I find a command that may need it. Depends on the keypad timing. May I suggest a few items? 1. You would significantly increase the worth of FSUIPC7 for Alpha and Bravo users if you created a proprietary C510 set of presets to be offered in a paid version only. 2. To use the UI to set controls to buttons or keypresses may be enhance for users if the control search (one where the user enter the first few characters) returns the first entry at the top of the pick list. 3. Is there some way that upon start up that there could be a log option that could separate the InputEvent found and InputEvent parameter received lists from the log when a user request logging Input Events? Another words List On/Off. That way, when user debugging, the log is not too large. 4. Keypresses – Is there a way to turn on/off showing keyboard presses while continuing to show buttons & keys from other devices than the keyboard. I am realizing that most of the KEYDOWN and KEYUP entries in the log are keyboard usage to navigate around MSFS. These suggestions are to allow a user to use the log as a debugging tool while providing the ability to show all the data you need to debug FSUIPC. Thanks
  23. Thanks John, You don't have to be so adamant. You have much more knowledge and intimacy with FSUIPC than most of your customers. If we ask dumb questions it's because we haven't a clue how simconnect works, where things are in the documentation or even most of the MSFS functionality. An example is how to read button/key log entries. If there is documentation, we can't find it. Thanks again.
×
×
  • 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.