IT-AUTOFLIGHT: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 93: Line 93:
</syntaxhighlight>
</syntaxhighlight>


--------------------------------------------------------------------------------------------------
----


* Finally, add the following anywhere outside <sim></sim>:
* Finally, add the following anywhere outside <sim></sim>:
Line 100: Line 100:
* This is the default IT-AUTOFLIGHT Configuration. We will be adjusting this later.
* This is the default IT-AUTOFLIGHT Configuration. We will be adjusting this later.


--------------------------------------------------------------------------------------------------
----


==== Complete ====
==== Complete ====
Line 187: Line 187:
The tuning is now complete. Remember to check the CHANGELOG.txt after each IT-AUTOFLIGHT Update, to make sure, nothing needs to be retuned.
The tuning is now complete. Remember to check the CHANGELOG.txt after each IT-AUTOFLIGHT Update, to make sure, nothing needs to be retuned.


== SDK ==
== Interface Reference ==
This section will discuss the inputs and outputs of IT-AUTOFLIGHT. These can be used for PFD/MCP interfacing, or building a custom autothrottle, or any other need for communicating with IT-AUTOFLIGHT. I will also list what types of inputs are allowed. (BOOL, INT, etc.)
This section will discuss the inputs and outputs of IT-AUTOFLIGHT. These can be used for PFD/MCP interfacing, or building a custom autothrottle, or any other need for communicating with IT-AUTOFLIGHT. Also listed are what types of inputs are allowed. (BOOL, INT, etc.)
 
==== FD: /it-autoflight/fd ====
* '''pitch-bar''': The flight director pitch bar deflection in degrees.
* '''roll-bar''': The flight director roll bar deflection in degrees.
 
==== Input: /it-autoflight/input ====
==== Input: /it-autoflight/input ====
* '''alt''': Adjusts the Target Altitude in Feet (0 - 50000). INT (Note: IT-AUTOFLIGHT can fly higher than 50,000 feet, but it is not recommended.)
* '''alt''': Adjusts the Target Altitude in Feet (0 - 50000). INT (Note: IT-AUTOFLIGHT can fly higher than 50,000 feet, but it is not recommended.)
Line 197: Line 202:
* '''athr''': Switches the Autothrottle Off (0) and On (1). BOOL
* '''athr''': Switches the Autothrottle Off (0) and On (1). BOOL
* '''athr-avail''': Sets whether the Autothrottle is Unavailable (0) or Available (1). BOOL
* '''athr-avail''': Sets whether the Autothrottle is Unavailable (0) or Available (1). BOOL
* '''bank-limit-sw''': Adjust the bank limit mode to AUTO (0), 5 Degrees (1), 10 Degrees (2), 15 Degrees (3), 20 Degrees (4), 25 Degrees (5), 30 Degrees (6). INT
* '''bank-limit-sw''': Adjust the bank limit mode: AUTO (0), 5 Degrees (1), 10 Degrees (2), 15 Degrees (3), 20 Degrees (4), 25 Degrees (5), 30 Degrees (6), 35 Degrees (7). INT
* '''fd1''': Switches the Flight Director 1 Off (0) and On (1). BOOL
* '''fd1''': Switches the Flight Director 1 Off (0) and On (1). BOOL
* '''fd2''': Switches the Flight Director 2 Off (0) and On (1). BOOL
* '''fd2''': Switches the Flight Director 2 Off (0) and On (1). BOOL
Line 246: Line 251:
* '''thr''': Thrust System Mode: [THRUST - PITCH - RETARD]
* '''thr''': Thrust System Mode: [THRUST - PITCH - RETARD]


--------------------------------------------------------------------------------------------------
----
 
==== Flight Director ====
The following shows how to implement a flight director with ITAF.
 
The bars should be shown when /it-autoflight/output/fd1 or fd2 is true (1). When all autopilots and flight directors are off, some computations are turned off or synced. As a result, only display the bars when the flight director is enabled.
 
;Dual Cue:
The pitch bar should be translated vertically based on /it-autoflight/fd/pitch-bar, which is in degrees. Positive is upwards.
 
The roll bar should be translated horizontally based on /it-autoflight/fd/roll-bar, which is in degrees. Positive is to the right.
 
;Single Cue
The pitch bar should be translated vertically based on /it-autoflight/fd/pitch-bar, which is in degrees. Positive is upwards.
 
The roll bar should be rotated based on /it-autoflight/fd/roll-bar, which is in degrees. Positive is to the right. Ensure that the rotation is done AFTER the pitch translation.
 
----


==== Custom FMA ====
==== 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.
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:
You need to enable the '''custom-fma''' setting in the config module. Then, add the Custom FMA nasal file in the itaf namespace:


* ITAF includes an optional [https://github.com/Octal450/IT-AUTOFLIGHT/blob/master/Custom%20FMA/custom-fma.nas custom-fma.nas] file as an example. It is in the Custom FMA folder, copy it to the Nasal folder in your aircraft.
* ITAF includes an optional [https://github.com/Octal450/IT-AUTOFLIGHT/blob/master/Custom%20FMA/custom-fma.nas custom-fma.nas] file as an example. It is in the Custom FMA folder, copy it to the Nasal folder in your aircraft.
1,414

edits

Navigation menu