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.

LUA script for rudder only below 180kts?

Featured Replies

  • Commercial Member

Don't ask me why, I want to assign aileron and rudder on the same axis. :) So the rudder is used anyway on final and landings only, or below say 180kts, so when flying only aileron will be active, and on landings both aileron+rudder on the same axis. Is that possible via LUA or LINDA?

 

Any help and ideas are appreciated!

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

Hi,

 

It should be possible in LUA, you can get the Axis information and airspeed fine, Pretty sure you can override the axis outputs as well :)

Chris Warner

 

PMDG : JS4100, MD-11, 737 NGX (Soon!)

  • Author
  • Commercial Member

I presume it is possible, but I don't know the script. :(

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

Ok I won't be asking why but how will you perform coordinated turns? :)

I mean when you will bank right you will also apply right rudder - is this you want to achieve??

 

Btw on which controller? Maybe there is a possibility through controller software?

Tomasz Zawadzki

rb_banner_driver.png

Banner_MJC1.png

  • Author
  • Commercial Member

Ok I won't be asking why but how will you perform coordinated turns? :)

I mean when you will bank right you will also apply right rudder - is this you want to achieve??

 

Btw on which controller? Maybe there is a possibility through controller software?

 

I want to simulate classic yokes control (Boeing) with my Logitech G25 Wheel. I'm using accelerator & clutch pedals as elevator (don't laugh), and brake pedal as brake. I can assign rudded on the same axis as aileron (wheel axis), but I don't want to use it all the time, even when I turn. In airliners I'm using it only on final approach, especially when the wind is strong.

 

I usually fly with Saitek Cyborg yoke + G25 wheel as throttle (rotated by 90 degrees), and pedals as rudder, but since I switched back to Boeings and CLS MD-82, it simply doesn't feel right to fly with a joystick, so I wanted to simulate classic yoke until I buy Saitek Pro Flight or something.

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

I am not laughing - it is actually amazing idea for ppl without yoke :)

 

I have a g27 and having hard time with rudder on my Logitech stick (one hand on yoke one on joystick for rudder during crosswind)

 

I am wondering If I could assign pedals from g27 to work as a rudder - that sounds like fun :)

 

If only I didn't mount them on a g27 dedicated stand...

Tomasz Zawadzki

rb_banner_driver.png

Banner_MJC1.png

  • Author
  • Commercial Member

It is good solution to use G25/27 pedals as rudder for sure. :)
You can assign pedals to work as a rudder, in two ways. First one is to check to option "combined pedals) in G27 options, and use brake/acceleration pedal as rudder (assign the axis in FSX controls).

 

Second and definitely better solution, but a bit complicated is to use PPJoy and GlovePIE + Script (that I have), and you can use clutch & acceleration pedal as rudder. In short you must add a controller via PPJoy, and assign the pedals as one axis via script in GlovePIE.

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

Pelle,

 

Can you tell me your requirements exactly? I can probably knock up the LUA script for this, but it might not be for a week or two :)

Chris Warner

 

PMDG : JS4100, MD-11, 737 NGX (Soon!)

  • Author
  • Commercial Member

Pelle,

 

Can you tell me your requirements exactly? I can probably knock up the LUA script for this, but it might not be for a week or two :)

 

Thank you mate in advance, really! I would love to write the script myself, but I don't know the script, and is it good idea to learn whole LUA script just for this rudder thingy.

 

Anyway, I would love to use the rudder ONLY below speed X kts (where X is 160, 180, etc). So when the plane is on final flying at 160kts, the rudder will activate below 180kts for example. But on a second thought, maybe it is easier to wirte a script where rudder is activated on a press of a joystick button? Like, when the in FSUIPC assigned button X is pressed and hold, the rudder is active. When released, rudder is not active. What aprroach would be easier to script?

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

Hi Pe11e,

 

both are quite easy, but a bit more detail needed. What do you want to happen to the Aileron input when the rudder is activated? Your first post said rudder AND aileron, however you mention in your latest post that you want rudder ONLY below a certain speed (or button press :) )

 

both require a slightly different approach.

 

How does the following sound:

 

Ailerons work as normal. When a button is pressed BOTH ailerons and rudder are active.

 

What do you want to happen to the rudder input when the button is released? return to centered? or stay at the current deflection?

Chris Warner

 

PMDG : JS4100, MD-11, 737 NGX (Soon!)

  • Author
  • Commercial Member

Yes, when the button is pressed and hold the rudder is active, ailerons work as normal. When button is released rudder is centered. It would be tricky if rudder doesn't back to center IMO. :)

 

Cheers

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

OK, cool

 

I will knock something together and we can test it, might be the weekend if thats ok?

Chris Warner

 

PMDG : JS4100, MD-11, 737 NGX (Soon!)

  • Author
  • Commercial Member

Of course it's ok, take your time.

Huge thanks mate once again!

 

Sent from my U8815 using Tapatalk 2

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

Create an account or sign in to comment

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.