aircraft:tmd:logic
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
aircraft:tmd:logic [2019/07/12 20:46] – jh | aircraft:tmd:logic [2022/07/19 21:04] (current) – [input_active] jh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Math ====== | + | ====== Math And Logic in Aerofly FS 2 ====== |
+ | Aerofly FS 2 [[aircraft: | ||
+ | |||
+ | There is a wide range of objects available for you to set up your digital systems or simulate new physical system within the tmd. | ||
+ | |||
+ | From simple scaling to complex logic circuits and even flight controller programming, | ||
+ | |||
+ | Together with the powerful [[aircraft: | ||
+ | |||
+ | > All of the following components have an '' | ||
+ | ===== Simple Algebra ===== | ||
+ | |||
+ | Let us introduce the simple mathematical building blocks one at a time. | ||
==== constant ==== | ==== constant ==== | ||
Line 19: | Line 31: | ||
< | < | ||
< | < | ||
- | <[string8][Offset][0.0]> | + | <[float64][Offset][0.0]> |
> | > | ||
</ | </ | ||
Line 147: | Line 159: | ||
</ | </ | ||
- | ===== Dynamic | + | ===== Dynamic |
+ | Moving on from the basic functions, let's get into the more advanced mathematics. | ||
==== integral ==== | ==== integral ==== | ||
+ | |||
+ | Integrates the input with time. When the input is 1.0 then the output changes by 1.0 each second. When the input is 0.0 the output value doesn' | ||
+ | |||
+ | Can also be used to simulate first and second order systems with the input being the differential equation for the rate of change. | ||
+ | |||
+ | Examples: | ||
+ | Integrating over the rotation speed give the total rotation angle. Integrating 1.0 gives the total time that the simulation run. Integrating the on ground sensor output gives the total time on ground. | ||
+ | |||
+ | The integral can be reset to 0.0 with the '' | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | > | ||
+ | </ | ||
==== differentiator ==== | ==== differentiator ==== | ||
- | ==== delay_clamped ==== | + | Differentiates the input value over time. When the input increases very quickly the output is very high and returns the rate of change. When the input remains constant the output is zero. |
+ | |||
+ | Most airliners have a speed trend arrow on the primary flight displays. The airspeed is differentiated to get the rate of change of the airspeed, the airspeed trend. | ||
+ | |||
+ | < | ||
+ | < | ||
+ | > | ||
+ | </ | ||
==== first_order_low_pass ==== | ==== first_order_low_pass ==== | ||
- | ====== Logic Circuits ====== | + | Simulates a first order system where the rate of change is proportional to the difference between the output and the input. |
+ | |||
+ | Great low pass filter! | ||
+ | |||
+ | '' | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | > | ||
+ | </ | ||
+ | |||
+ | ==== delay_clamped | ||
+ | |||
+ | The output slowly follows the input with the set '' | ||
+ | |||
+ | Sort of like a slow dog on a leash that trots along when you walk slowly but as you start running the dog is more or less pulled along. | ||
+ | |||
+ | The output stays clamped within the Input +/- the threshold border. | ||
+ | |||
+ | Useful to detect if the pitch trim is running away, or in other words: the input is constantly changing in one direction so that the output can't keep up. In this case the OutputClamped would be used. | ||
+ | |||
+ | < | ||
+ | // One direction: | ||
+ | // Input moving: | ||
+ | // Output | ||
+ | // | ||
+ | // Input moving: | ||
+ | // Output | ||
+ | // | ||
+ | // Other direction | ||
+ | // Input moving: | ||
+ | // Output | ||
+ | // | ||
+ | // Input moving: | ||
+ | // Output | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | > | ||
+ | </ | ||
- | ===== Any value to binary | + | ===== Binary / Discretization |
==== logic_greater ==== | ==== logic_greater ==== | ||
Line 262: | Line 341: | ||
</ | </ | ||
- | ===== Discrete and Binary Operations | + | ===== Logic Gates ===== |
==== input_active ==== | ==== input_active ==== | ||
Returns 1.0 as long as a button is depressed. Returns 0.0 if not. | Returns 1.0 as long as a button is depressed. Returns 0.0 if not. | ||
- | Incoming messages are filtered with the InputValue (see [[tmd:aircraft: | + | Incoming messages are filtered with the InputValue (see [[aircraft:tmd: |
< | < |
aircraft/tmd/logic.1562957195.txt.gz · Last modified: 2019/07/12 20:46 by jh