Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rabso

Members
  • Joined

  • Last visited

  1. Scotflieger, I have done the trick :Big Grin: here is my code to share with all: function APU_SEL_SWITCH_start_sequence() time1 = ipc.elapsedtime() while true do time2 = ipc.elapsedtime() - time1 if time2 >= 2000 then break else APU_SEL_SWITCH_start () end end APU_SEL_SWITCH_on () end to explain, - time1 will note the function start time - entering a loop to keep the APU selector on Start position as long the time difference time between time2 and time1 less than 2 seconds. - time2 will keep increasing as long the loop is going on. - once difference time be more than 2 seconds, the loop will break, and then APU selector will go to On.
  2. Thanks Scotflieger for your reply, well I have already read all the above documents but still did not get why 536890912 has been used to control instead of direct position value as per following giving information: unsigned char FCTL_Speedbrake_Lever; // Position 0...100 0: DOWN, 25: ARMED, 26...100: DEPLOYED So I went through the whole PMDG 777 SDK again and found the reason (your reply gave me the hint); the decimal 536890912 is equates to x20000000 in hexadecimal which is a pre-defined mouse flag for mouse left click simulation (it's nice idea to control rotary knobs or to trigger a two position switch without checking its previous position). But still something I can't understand: As per above code, FCTL_Speedbrake_Lever has many positions, 25 is for Armed position. Yes Guenseli used the x20000000 (mouse click simulation) to arm the lever but why when use the value 25 will not do it? I used LINDA Tracer to get what is going on, I armed the Speedbrake lever by mouse and found that the switch_498_a (speedbrake lever) = 100 and full up is = 400. So I did this code: function SPEEDBRAKE_ARM () if ipc.readLvar("switch_498_a") < 100 then ipc.control(PMDGBaseVariable +498, 100) end end but did not work I let the LINDA tracer feed the value (once 255 and other 100) and it works with the following result: WRITE0[8504] 7321, 60 bytes: 53 4C 3A 73 77 69 74 63 68 5F 34 39 38 5F 61 3D SL:switch_498_a= 32 35 35 00 00 00 00 00 00 00 00 00 00 00 00 00 255............. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 ............ WRITE0[8504] 735F, 1 bytes: 01 . WRITElua 7321, 60 bytes: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 ............ WRITElua 735F, 1 bytes: 00 . LUA.0: [L] LVar: switch_498_a = 255 WRITE0[8504] 7321, 60 bytes: 53 4C 3A 73 77 69 74 63 68 5F 34 39 38 5F 61 3D SL:switch_498_a= 31 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 100............. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 ............ WRITE0[8504] 735F, 1 bytes: 01 . WRITElua 7321, 60 bytes: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 ............ WRITElua 735F, 1 bytes: 00 . LUA.0: [L] LVar: switch_498_a = 100 I know it's some where in above bytes but don't know to put it in my code. sorry for this big question
  3. Hi all, I am new to LINDA and LUA. and I have been reading all about LUA and take some tutorial (in general I have little background about programming as it's my hobby). However, I am stuck at one point seems can't get it! It's about the parameter of ipc.control let's talk about PMDG 777, I have this example (from LINDA 777 Module): function PMDG_Spoilers_arm () if ipc.readLvar("switch_498_a") < 100 then ipc.control(74614, 536870912) end DspShow ("Splr", "arm") end From above, the control number is 74614 and by omitting 69632 you will get 4982 which is referring to EVT_CONTROL_STAND_SPEED_BRAKE_LEVER_ARM The question is; what is the meaning of 536870912? I tried a lot to figure out it but no result! in PMDG_777X_SDK.h you will see some Controls with its position, but usually they are 0, 1, 2 .... (max I saw is 150) in LINDA 777 module I found sometimes 128, 265 or the above one. could some one explain more for me thanks
  4. yes am looking for accuracy of the simulation. I am aware of the OnPress and OnRepeat then OnRelease, but this is only applicable for buttons where I am using switch in my Warthog throttle. The idea is when I move the APU switch of my warthog to on, LUA will turn the 777 APU to start for 5 seconds then back to On
  5. I am trying here to do small LUA scripts, after reading a lot about LUA, am still unable to do it. The APU selector switch in 777 has off, on and start positions; in real life you should switch to Start for 5 seconds then release the switch which will go back to on. I am trying to simulate that. I did the following code: function APU_SEL_SWITCH_start_seq () APU_SEL_SWITCH_start () ipc.sleep (5000) APU_SEL_SWITCH_on () end however, in above code there is no any hold for the Start position, the ipc.sleep is just to give a break of 5 seconds. could any one help me with the hold code?
  6. I recently purchased the TM Warthog and so far I am still trying to understand how I can assign it to my PMDG 777. I would like to ask is there any one with ready LINDA profile can share with me? I searched a lot but I could not find one profile thanks
  7. thank you a lot for your feedback. I am really thinking to move direct to P3Dv3. just question, can you tell me how you are using your joystick other than LINDA way? is it through TARGET? really it's not matter for me to use just LINDA, I just need a working easy way. thanks
  8. I just recieved my Warthog and for 2 days I am trying hard to make them works with the PMDG777, could some one please share the profiles or steps? I can't understand LINDA
  9. I have another friend reported the same! I will try to ask the IVAP team and let you know
  10. Hi steve, I have been using FSX with DX10 long time now, but up to date I could not fix one issue! I am flying online (IVAO) with full mode screen. Every time I run the software IVAP the whole screen will turn into black, so the only solution am doing now is to connect online while the screen black and then hide IVAP which will make it ok again. this solution will not allow me to use text communication with the ATC. Could you please advise if you have any idea about that? thanks
  11. Thank you, I am just waiting PMDG and ASN then going to switch to FSX:SE
  12. Very great news. waiting for the some tweaks!
  13. No need to export from PFPX; ASN will do all. After requesting the flight plan in your FMC, the 777 will create the FSX plan and then the ASN will generate the WX file, at end the FMC will load this WX file. Use PFPX for planning and ASN for weathering.
  14. After loading the flight plan into FSX, ASN will detect that and then export the wx data to [FSX]\PMDG\WX If this didn't happen; then are using the ASN in a network configuration? I am using the ASN in a network configuration and unfortunately the ASN did not detect the FSX flight plan. I waiting ASN team to reply about this issue
  15. sound great! I followed all the steps and cleaned what is necessary, now my credit card is waiting

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.