By default, the flap selector lever in the cockpit is infinitely variable when controlled with a "Flap Axis" which can lead to some difficulties when trying to set the flap selector lever in a specific gate. The following steps will change this logic so that the flap selector lever 'snaps' into each gate on the throttle quadrant when the "Flap Axis" is moved to a specific range (similar to the logic used in MSFS).
Note: We would only recommend attempting the following steps if you are familiar with editing config/text files. If at any point you would like to revert to the default settings, simply redownload the product from your account on JustFlight.com
1. Assign your preferred hardware axis to the flaps in X-Plane Settings.
2. Use 'Dataref Tool', or 'Datarefeditor' (both available as free downloads) to determine which axis number of the following dataref is used for flaps:
sim/joystick/joystick_axis_assignments
The specific array (which line in the list, 0 to 499) will have a value of 11 for the flaps. In this example, it shows as array number 30:
3. Unassign the hardware axis from flaps in X-Plane Settings. Verify that it now reads zero (set the axis to 'None').
4. Open the package's manifest.json file (located at: ...\X-Plane 12\Aircraft\JF12_BAe_146) using a text editor of your choosing (recommend Notepad++ or similar), and search (CTRL + F) for "FlapHandler"
5. On the line "Flap_Handle_Axis", change the "nil" to the array number you just found using the 'Dataref Tool', or 'Datarefeditor'. In this example, it was 30.
Note: Please ensure the speech marks on either side of "nil" are also removed. In the above example, "nil" is replaced by 30 (with no speech marks)
6. Save the file and reload the plane.
7. Return to the X-Plane settings and set the reverse checkbox according to what you need for the flap handle. If it is moving in reverse to what you want, click the checkbox to set it accordingly.
8. If at any time you no longer want to use hardware controls for flaps and would like to revert to the default logic, simply reset that line in the manifest.json to "nil" as shown below:
9. After any revision to the manifest.json, save the file and reload the aircraft.