Skip to content

A FlyWithLua plugin that adds a slew mode to X-Plane

Notifications You must be signed in to change notification settings

jonaseberle/xplane-plugin-SlewMode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

X-Plane FlyWithLua plugin "SlewMode"

What it does

It allows to use a joystick to move and rotate the aircraft. It follows the terrain (when on the ground).

Requirements

Installation

Put the .lua file into ./Resources/plugins/FlyWithLua/Scripts/

Usage

Quickstart

  • Bind the command flightwusel/SlewMode/Toggle to a key or joystick button.
  • Press the key/button to enable/disable Slew Mode. While active, it will announce the current mode on-screen ("free" or "following terrain"). In terrain-following mode it will keep the plane sticked to the ground. You change the mode to "free" by increasing altitude. When you "hit" the ground, terrain following mode is engaged.
  • Use your joystick to move the aircraft:
    • Pitch axis -> move forward/backward
    • Roll axis -> move sideways
    • Yaw axis -> heading
  • Use your joystick to roll the aircraft:
    • While pressing SPACE (the "modifier key") you can roll the aircraft with the joystick:
      • Pitch axis -> pitch
      • Roll axis -> roll
  • Change altitude:
    • You can bind keys for increasing/decreasing altitude.
  • Keep moving in a direction:
    • While pressing SHIFT+SPACE (SHIFT+"modifier key") your current joystick input will be the default movement vector. Example: Move stick forward, press SHIFT+SPACE and you will continue to move forward even if you center the stick again. (Press SHIFT+SPACE with the joystick centered to stop again)

All command refs

flightwusel/SlewMode/Toggle, /Activate, /Deactivate

Enable/disable Slew Mode

flightwusel/SlewMode/Altitude_increase_lots, /Altitude_increase, /Altitude_decrease_lots, /Altitude_decrease

Adjust altitude

flightwusel/SlewMode/Level

Set roll and pitch to 0°

Settings

The "modifier key", axis assignments etc. can be changed in the settings table at the beginning of the file.

Help

If you have problems, feedback or ideas you can open an issue here or post in the thread on the x-plane.org forum.

About

A FlyWithLua plugin that adds a slew mode to X-Plane

Resources

Stars

Watchers

Forks

Languages