Jump to content
The simFlight Network Forums

DaveSCUSA

Members
  • Posts

    169
  • Joined

  • Last visited

Everything posted by DaveSCUSA

  1. Hello John, I'm not at my PC so I can't "Add Files". But I do have a question if I may. I'm trying to execute an Lua function based on the routine "event.sim". It's coded event.sim(FLIGHTLOAD,"StartLVar"). I want the code to kick off when a flight is started - "Fly Now". The Lua is loaded and stops at "waiting for an event". Is this routine still available and where in the schema does it light off? Thanks
  2. Thanks for your response. Upon assigning a button or key in the assignment UI, FSUIPC7 enters the programming in the FSUIPC7.ini file under a [Buttons] or [Keys] section. I wa talking about the <Entry Number> for each assignment. If memory serves (?????), the number had incremented by 2. Now it seems to increment by 1 starting with 0.
  3. I have several questions and requests: 1. The keypress assignments doesn't retain the profile radio button to the next assignment as does the button0 assignment. When performing numerous assignments for an aircraft, forgetting to select the check can obviously cause issues. Could you carry the profile button forward? 2. When entering the first few letters in the control, preset, input event field, the first occurance appears at the bottom of the window. Could the first occurrence appear at the top of the window? Would save many mouse clicks. 3. The increment of the button or keypress assignments now ncrements by one (1). I seem to remember the entries were incremented by two (2). Could you change the increment to more than 1. 4. Is there a way, other than assigning to an offset, to display the LVar used with an event or input event in the log? Or, a method to select one or more LVars to display their values in the log? Thanks
  4. PS - A question I forgot to ask. Does including an LVar in a preset define the LVar in the Sim as it does in the model behaviors?
  5. Thank you. I have given up on the Mustang. Sometimes the key presses work sometimes they don't. I have switched to the C700 Longitude. The above toggles only work in one direction, turns the valve on but not off with the second push. I understand the above in principle. But could you explain: C700s_ANTI_COLL#(L:LIGHTING_STROBE_1) ! s0 (>L:LIGHTING_STROBE_1) 1 l0 (>K:2:STROBES_SET), I don't understand the role of S0 and I0. What number is set into the >K:2:STROBES_SET? C700s_Elec_Stby_Pwr_On#(A:ELECTRICAL MASTER BATTERY:3, bool) ! if{ 3 (>K:TOGGLE_MASTER_BATTERY) } 0 (>L:XMLVAR_STBYBattery_Test), in this case is it asking if A:ELECTRICAL MASTER BATTERY:3 is not true. These things can get kind of tricky. Thanks
  6. Thanks for all your input, I have it working. M_LH_Fuel_On#0 (>L:switch_fuel_left, bool) (>K:TOGGLE_FUEL_VALVE_ENG1) 1 (>L:C510L_Fuel_1, Enum) M_RH_Fuel_On#0 (>L:switch_fuel_right, bool) (>K:TOGGLE_FUEL_VALVE_ENG2) 1 (>L:C510L_Fuel_2, Enum) M_LH_Fuel_Off#1 (>L:switch_fuel_left, bool) (>K:TOGGLE_FUEL_VALVE_ENG1) 0 (>L:C510L_Fuel_1, Enum) M_RH_Fuel_Off#1 (>L:switch_fuel_right bool) (>K:TOGGLE_FUEL_VALVE_ENG2) 0 (>L:C510L_Fuel_2, Enum)
  7. Not sure what your terminology is for the logging function. In the Log drop down in the UI there is an entry for offsets. Upon opening the window, there are four boxes to enter offsets. I used two spare offsets to attach L:switch_fuel_left and L:switch_fuel_right found in the C510_interior.xml file. Both offsets x66C6 and x66C7 showed in the log as 0 value at flight initialization. When the fuel valve switches were turned on, then off in the cockpit at startup, the only entry shown in the log are two events - TOGGLE_FUEL_VALVE_ENG_1 and TOGGLE_FUEL_VALVE_ENG2. No Input Event is displayed. There are no additional offset log entries. A sample of code from the C510_interior.xml file is <LEFT_SINGLE_CODE>(L:switch_fuel_left, bool) ! (&gt;L:switch_fuel_left, bool) (>K:TOGGLE_FUEL_VALVE_ENG1)</LEFT_SINGLE_CODE>
  8. Thanks, I found 2 LVars in the C510_interior.xml. The names are switch_fuel_left and right. I assigned each to offsets 66C6 and 66C7 and entered them in the offset log. Started the C510, exercised the fuel valves and didn't show any activity except the toggle events.
  9. Thank you, I have succeeded in binding the Alpha and Bravo buttons to the C510 due to your input. In looking at all the posts, I have learned much and have finally used the profiles effectively. There are switchs that have eluded me. They are both the fuel valves in the VC located on the trottle handles. The on/off functions log only 51813 *** EVENT: Cntrl= 66494 (0x000103be), Param= 0 (0x00000000) TOGGLE_FUEL_VALVE_ENG1, 54141 *** EVENT: Cntrl= 66494 (0x000103be), Param= 0 (0x00000000) TOGGLE_FUEL_VALVE_ENG1. No other events, input events or SImvars. I added all "Fuel" LVars to myOffsets.txt with no results. Are there any other methods to discover the items that drive these fuel events? Thank you. myOffsets.txt FSUIPC7.log
  10. Thank you, Please see my answer to this post in the post titled "C510 Button Switch Dilemma". There are files there that demonstrate the issue. The FSUIPC7.ini has log Events and Input Events turned on. May take me a few minutes to reply in that post.
  11. I did reread your posts and ensured I applied as best I could.
  12. Sorry to bother you again. But I am still struggling with the C510 button and switch assignments. Even after reading and applying all the replys you have provided, it seems the binding still don't work. I'm sure it's the aircraft and not FSUIPC7, but I can seem to get a handle on why. I tested the bindings using a simple Mad Catz V.1 Stick. The button assignments are contained in the attached C510.ini. I have attached 3 log files: 1. VC Start FSUIPC7.log, the C510 startup using the virtual cockpit switches 2. VC Shut Down FSUIPC7.log, the C510 shut down sequence using the virtual cockpit switches 3. Joystick Buttons FSUIPC7.log, the C510 startup using the Mad Catz V.1 Stick The events register in the log with the joystick as well as the virtual cockpit. But the joystick events do not start the aircraft. I have a limited number of buttons, so I tried to start only 1 engine with the joustick. I'm not asking you to check my work or assignments, I'm trying to find out why this aircraft does not react to the joystick buttons. Are there other debug options I should be using? If so could you point me to any documentation that will show how? There are no presets in Mobiflight for the C510, prehaps no one has found how to preset what events that willl work. As this is the only business jet to use the G1000 suite I can find, I would really like to find out how to bind this aircrafts controls. The axes work fine. I can fly this aircraft as along as I start on the runway. Thanks for your time, I know it's limited. VC Start FSUIPC7.log VC Shut Down FSUIPC7.log Joystick Buttons FSUIPC7.log FSUIPC7.ini C510.ini
  13. PS - I did add both simvars to offsets. I also added the lights simvars to offsets to avoid bit manipulation. I use offsets to toggle events from mom switches push on and then push off.
  14. Thank you, This was not an initial binding for a keypress.
  15. 1. For your information: In attempting to use Input Events with Key programming I followed the documnetation on Page 25. It can also be a Lua plug-in reference: L<file#>:<action> Where the File number refers to the [LuaFiles] list in the INI, and the action is one of these letters: R=Run, K=Kill, S=Set, C=Clear, T=Toggle, D=Debug Alternatively, it can be a preset name or the name of an Input Event, in which case it takes the form: P<PresetName> for presets, and L< Input Event name> for Input Events For Input Events: <Entry number> = <Action><Joy#>,<Btn#>,CI<Input Event Name>,<parameter> 17 I kept getting errors on the line 4=W0AF8<1 220,24,LFUEL_Cutoff_Crossfeed_1,0.000000 -{tab+\|key: Press=Input Event }- I had to use the assignments to find the control should have been "I". 2. Question about MSFS Variable Offsets: The DA62 Mod uses the Fuel Tank Selector to exercise the left and right fuel valves as defined: FUEL TANK SELECTOR:index - Which tank the indexed selector is set to. The index is the selector to check (from 1 to 4), and the return value will be the Fuel Tank Selected. The DA62 uses: FUEL TANK SELECTOR:1 The Left Main is selected (19) FUEL TANK SELECTOR:2 The Right Main is selected (20) In the FSUIPC7 Offsets Status there is listed: 0x0AF8 2 FUEL TANK SELECTOR:1 0x2054 4 TURB ENG TANK SELECTOR:1 0x2154 4 TURB ENG TANK SELECTOR:2-4 0x3880 4 RECIP ENG FUEL TANK SELECTOR:1 0x37C0 4 RECIP ENG FUEL TANK SELECTOR:2-4 There is no FUEL TANK SELECTOR:2. Shouldn't there be SELECTOR:2 thru :4 with offsets listed? I use the offsets to determine if the switch is on or off. The Turb and Recip offsets are not recognized by the DA62. I suppose I could create an offset from the variable, but should npt these offsets be avalable?
  16. Also, having difficulty with offset conditions with keyless programming in the C510.ini. I want to toggle the starter keypress based on its variable.
  17. 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?
  18. 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
  19. 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?
  20. 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?
  21. 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.
  22. 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
×
×
  • 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.