2,199
edits
No edit summary |
No edit summary |
||
| Line 244: | Line 244: | ||
* '''vert''': Active Pitch Mode: [ALT HLD - V/S - G/S - ALT CAP - SPD DES - SPD CLB - FPA - FLARE - ROLLOUT - T/O CLB - G/A CLB] | * '''vert''': Active Pitch Mode: [ALT HLD - V/S - G/S - ALT CAP - SPD DES - SPD CLB - FPA - FLARE - ROLLOUT - T/O CLB - G/A CLB] | ||
* '''thr''': Thrust System Mode: [THRUST - PITCH - RETARD] | * '''thr''': Thrust System Mode: [THRUST - PITCH - RETARD] | ||
==== Custom FMA ==== | |||
ITAF supports calling custom functions for a custom FMA. That way you don't need to use listeners or such that worsens performance. | |||
You need to enable the '''custom-fma''' setting in the config module. Then, add the custom FMA nasal file in the itaf space: | |||
* ITAF includes an optional custom-fma.nas file as an example. It is in the Custom FMA folder, copy it to the Nasal folder in your aircraft. | |||
* Find the <nasal> area, which is outside <sim></sim>. | |||
* Find where you added <itaf></itaf> to <nasal></nasal> | |||
* Add the custom-fma.nas as shown: | |||
<syntaxhighlight lang="xml"> | |||
<itaf> | |||
<file>Nasal/it-autoflight.nas</file> | |||
<file>Nasal/custom-fma.nas</file> | |||
</itaf> | |||
</syntaxhighlight> | |||
The functions called are: | |||
* '''updateFMA.lat()''': Called when the lateral mode changes | |||
* '''updateFMA.vert()''': Called when the vertical mode changes | |||
* '''updateFMA.arm()''': Called when LNAV, LOC, and G/S are armed/disarmed | |||
== Related content == | == Related content == | ||
edits