Jump to content

Jujunet

Frozen-Inactivity
  • Content Count

    10
  • Donations

    $0.00 
  • Joined

  • Last visited

Community Reputation

3 Neutral

About Jujunet

  • Birthday 01/23/1981

Profile Information

  • Gender
    Male
  • Location
    TOURS LFOT, FRANCE.
  • Interests
    Computers, Aeronautics, Guitar, Astronomy, Aquariums, Sciences...

Flight Sim Profile

  • Commercial Member
    No
  • Online Flight Organization Membership
    none
  • Virtual Airlines
    No

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi all, @lonewulf : sorry for late answer, I was preparing something answering exactly what you want : A video tutorial. I modified the code, because some functions won't work anymore since last updates of FBW A320. Updated Joe's project to get working these broken functions (see readme for corrections) : https://library.avsim.net/download.php?DLID=223961 I created a script for my button box buttons, coming from the tutorial : https://library.avsim.net/download.php?DLID=223962 The tutorial : Good reading and have a good day Julien
  2. Hi. I've uploaded the file, you can check it out on library, it may be appear after validation. @Joeherwig, you can test these new functions and update the project if you find it cool. Added : SELECTED/MANAGED toogle on Speed, Heading, Altitude, Vertical Speed. Independant Nose, LAND and Rwy turn light (Nose light to TAXI and Nose light to TO toggle) Baro : QNH increase/decrease Baro : QNH selected to Standard toggle Baro : Hectopascal to milimeter of mercury units toggle Autobrake : Cycle on single press button (Low, Medium, High and off) MFD button cycle (CSTR, WPT, VOR.D, NDB, ARPT) EICAM 2 Cycle (Engine, Bleed, etc...) And ALL (automatic Cycle) SeatBelt and No Smoking
  3. Hi mstaskovan, I'm not familiarized with mobiflight. But there is somehow some mobiflight functions in FSUIPC that works when you use the ipc number showed in console at activation of these it in FSUIPC.
  4. Hi ! That's done ! I would share the code found. 😉 By analogy, after speed, I made toggle SELECTED/MANAGED functions for HDG and ALT : function A32nx_FCU_SPD_MODE_Toogle () if ipc.readUW(0x0298) > 1 then ipc.control(68066, 1) else ipc.control(68066, 2) end end function A32nx_FCU_HDG_MODE_Toogle () if ipc.readUW(0x0294) > 1 then ipc.control(68065, 1) else ipc.control(68065, 2) end end function A32nx_FCU_ALT_MODE_Toogle () if ipc.readUW(0x0290) > 1 then ipc.control(68067, 1) else ipc.control(68067, 2) end end In these conditions, I read the offset attributed to each function and apply the opposite number to the corresponding IPC control (1 if the actual parameter is 2 and conversely). For the novices like me you can found offsets number if lucky in google, or there is a list here : https://www.projectmagenta.com/all-fsuipc-offsets/ Sometimes, the FSUIPC console gives it. After that you can look at the console of FSUIPC which display the ipc.control numbers when you press a button in virtual cockpit, with the corresponding function (like 68068 for VS_SLOT_INDEX_SET for example). And the number applied il also shown (0,1,2...). At first I was looking a time on HDG which wouldn't work, I found offsets from a post of John Dowson "ALTITUDE /HEADING/SPEED SLOT INDEX sim variables are held in offsets 0x0290, 0x0284 & 0x0298" There was a typing error, the right one for HDG is 0x0294 ! I found it weird that he had an 8, I tried a 9 and bingo ! 😄 For the VS it was a lot more complicated, a real headache : When you press up in virtual cockpit (selected), you see in FSUIPC console : 65799 AP_PANEL_ALTITUDE_HOLD = 1 66115 AP_PANEL_VS_ON = 1 68068 VS_SLOT_INDEX_SET = 1 (multitude of them) When you press down (managed) 66115 AP_PANEL_VS_ON = 1 65891 AP_PANEL_SPEED_HOLD But when you simply apply theses numbers, that won't work... So I did (after a loooonnng work, of trying, test, look, trying, test...) : I went in FSUIPC, assignments, Button&Switches and try everything about VS. I found "MobiFlight.A320_Neo_FCU_VS_PUSH" and PULL working and display the 0000 in selected and the ---- in managed mode. The console gives me the 33074 and 33073 numbers, all good ! This code is working : function A32nx_FCU_VS_MODE_Toogle () if ipc.readUW(0x07EC) == 1 then ipc.control(33073,1) elseif ipc.readUW(0x07EC) == 0 then ipc.control(33074,1) end end For VS increment and decrement, the integrated command in MFS don't work, so I created the ones in LINDA, and deleted those attributions in MFS. function A32nx_VS_INC() ipc.control(33071,1) end function A32nx_VS_DEC() ipc.control(33072,1) end Here is the behaviour of all this on VS : I'm flying at FL200 and I have displayed 30000 ft on FCU. MCDU is working, VS is 2300, FCU shows : 30000 ---- press 1 time on VS button : 30000 0000 VS become 0 on vario. Turn VS knob to +700 : 30000 +700 become 30000 ---- if no touch, and VS goes 2300 on vario, automatic go back managed. We start again : Press 1 time VS button : 30000 0000 Second press : 30000 +700 And if I press right away ATL button : 30000.+700 and VS is selected (must have the point after ATL value). VS goes to +700 ft/min on vario. The display of VS when you turn the knob is slow, with a little delay. I will check if there is another function in FSUIPC to inc/decrement the VS wich more speed.
  5. Thank you guys. Have a nice flights ! 🙂
  6. Hi, To activate directly a hvar using fsuipc, you open fsuipc interface (right clic on system tray icon), "Show". Now you can clic on "Addons", "WASM", "activate Hvar". There is the dropdown list I mentioned above. I also have the A32NX FBW.hvar empty file. But I saw somewhere, the right one is A320.hvar for the FBW. And when I list the hvar with FSUIPC and A320 FBW loaded in MFS, all hvars appear. Also, some hvars can be activated directly with FSUIPC and LINDA (ILS button for example), so I think for this part, it may be right. For the MANAGED/SELECTED there is good news, I have a kind of progress. 🙂 I went into the code, I took a look to the two functions I already binded successfully with the default A32NX LINDA. ILS button and Autothrust. ILS is an Hvar activation, and the code is : function A32nx_PFD_BTN_LS_1() ipc.activateHvar("H:A320_Neo_PFD_BTN_LS_1") end Autotrust button is on this syntax : function A32nx_AUTO_THROTTLE_toggle() ipc.control(65860, 0) end Functions Selected/managed that won't work is also Hvar activation : (With some more coding that I don't understand, if someone can explain it, it will be great, I have no skills in programming) for example : function A32nx_FCU_SPD_MODE_selected () ipc.activateHvar("H:A320_Neo_FCU_SPEED_PULL") DspShow ("SPD", "set") SyncBackSPD (0, ipc.readUW(0x07E2), true) end After an afternoon work I found by analogy this working code for toogle SPD button 😄 : function A32nx_FCU_SPD_Toogle () if ipc.readUW(0x0298) > 1 then ipc.control(68066, 1) else ipc.control(68066, 2) end end I saw conditions in the code with reading of "offsets" (don't know what that mean, but there is an offset by command). I found the offset (0x0298) value for SPD button in a forum, so I applied a condition with it, and try a simple condition using ipc.control to apply the managed and selected status. The 68066 is a value show on console of FSUIPC (and LINDA when you are in developper mode). There is a good explanation of using developper mode in youtube (LINDA video of stinger2k2) I think I can doing the HDG and ALT button. VS is more complicated, I saw there is two variables. After adding this code, I saw my new A32nx_FCU_SPD_Toogle () Function in Linda, binded it to my integrated pushbutton of rotary encoder, and that's is !
  7. Hi Swolski. I just take a look. I just updated all. Last versions of FBW A320 0.6.3, FSUIPC 7.2.10, WASM module 0.5.4. And A32NX Linda module 0.8 That won't work, but I have more information that maybe resolve the issue for Speed and Altitude. I did a flight LFRS to LFPG and with the aircraft in the air and all parameters to managed mode, I tested : Bind a button to LINDA controls for SPD, HDG, ALT to try to swich to selected mode : unfortunately, any of them works. Then I tried directly with FSUIPC, with the WASM module : Activate hvars. When you scroll down you have 4 hvars named H:A320_Neo_CDU_MODE_MANAGED (or SELECTED). The string is long so you don't see the end of each string. I tried each : 1) The first switch successfully to ALT managed mode 2) The second switch successfully to SPD managed mode 3) The third switch successfully to ALT selected mode 4) The fourth switch successfully to SPD selected mode When I go to WASM, List HVARS, I have : 006: H:A320_Neo_CDU_MODE_MANAGED_SPEED 007: H:A320_Neo_CDU_MODE_SELECTED_SPEED 008: H:A320_Neo_CDU_MODE_MANAGED_ALTITUDE 009: H:A320_Neo_CDU_MODE_SELECTED_ALTITUDE That are the same, but different in order. I think I remember these hvars were in the action.lua file of the A32NX LINDA profile, along with the ones with FCU Push OR Pull, but now, they don't. With FSUIPC, the Hvars named A320_Neo_FCU_HDG_PUSH (or PULL) won't work. In assign button of FSUIPC, a hvar Mobiflight.A320 NEO FCU HDG PULL works with parameter 1, the same for VS won't work. Heading_Slot_Index_Set with parameter 1 gives me selected mode on HDG, and managed mode with parameter 2. VS_Slot_Index_Set won't work.
  8. Hi, Yes. I have no problem in virtual cockpit. All the buttons works normally with the mouse interaction. The very strange thing is some hvars works and other not. It's not a Linda issue, because direct activation of the same hvars with FSUIPC won't work anyway.
  9. Hi all, I'm Jujunet from France, I'm new on this forum. I'm a flight sim user since 15 years. I started with FSX, then I used to play with Xplane, and now the new Flight Simulator 2020. I'm rather attracted by airliners. My favourite are Airbus, but I went to see Boeing and Embraer. My other hobbys are astronomy, aquariums, nature, guitar, and all about computers and sciences. Best regards,
  10. Hi, I have a trouble with the profile, I can't play with Selected/Managed Mode on Speed, HDG, Alt and VS. Even when I activate Hvar directly with FSUIPC, nothing works. I've tried on ground and flying, nothing works. I don't know why, I work on this since a long time. For Example if I load the FBW A320, on ground, all is managed. I have : ---. ---. 5000. ---- If I bind in LINDA "A32nx FCU SPD Mode selected" on my pushbutton, nothing happens. If I click on virtual cockpit on speed button to switch on selected mode, I have : 000 ---. 5000. ---- But : If I go in FSUIPC, Plugins, WASM and activate Hvars "188: H:A320_Neo_FCU_MODE_MANAGED_SPEED", nothing happens. Same with the hvars with "CDU" in place of "FCU" (selected and managed) Also, I hound no hvar for FCU Selected mode. Some strange, other hvars works, for example the ILS buttons. So the command of the A32NX plugin in LINDA works well for this, as well as activation directly with FSUIPC. Same with hvar of Auto trust. Something for Speed works : it's to bind "Speed Slot Index Set" with parameter 2 in FSUIPC, it moves to ---. again. If I change to Parameter 1, it moves to 000. My goal is to use my 4 encoders on my button box with integrated pushbutton to switch between selected / managed mode for each one. I've seen many threads on FSUIPC, but I have a lack of skills in programming and I don't understand the way to use FSUIPC. In FSUIPC I can't do easely a toogle between parameters 1 and 2 for "Speed Slot Index Set", becauce if I set one parameter for press and the other for release, it's useless. I saw on the advanced user manual of FSUIPC something to do that (COMPOUND BUTTON CONDITIONS). But it's very complicated to do a simple toogle... I'm an advanced PC user, but this is a way too high for my level, I don't understand the deep functionning of FSUIPC. On forums, Pete Dowson explanations are also in the same way of the pdf guide, very technical, but less popularization. So for my installation : I have the A320.hvar file in module folder, in the community fsuipc-lvar-module folder. (filled with all Hvars from the A320 FBW) I have the last versions of FSUIPC, Wasm plugin and Linda. (Won't works with previous versions of FSUIPC and WASM, and A320 whatsoever) CDU_MODE_SELECTED_ALTITUDE and MANAGED works directly on FSUIPC, but not in LINDA. CDU_MODE_SELECTED_SPEED works directly on FSUIPC, but not CDU_MODE_MANAGED_SPEED. HEADING_SLOT_INDEX_SET won't works (parameter 1 and 2) ALTITUDE_SLOT_INDEX_SET works. But if I set a parameter of 1, and push many times, it goes from selected to managed and the opposite, confirmed on the console, I have parameter 2 sometimes. A bug I think. VS_SLOT_INDEX_SET won't works. I've tried the simconnect events in the flybywire-aircraft-a320-neo.evt file in the FSUIPC folder. Nothing... Someone have an idea to what is the issue ? Any idea for a workaround ? Something to do with a macro in the LINDA user.lua to have a new function with toogle ? I made a buttonbox, you can see it on Youtube, "Button Box for Flight Simulator 2020" (video in English and French). Best regards,
×
×
  • Create New...