Flight data
In addition to this you can access some information from the aircraft:
Altitude - Aircraft's altitude in metres
AltitudeAgl - Aircraft's altitude above ground level in metres
GS - The speed relative to the ground (m/s)
IAS - The speed relative to the air, adjusted for the desnity of the air (m/s)
TAS - The speed relative to the air (m/s)
Fuel - The amount of fuel remaining as a proportion of capacity (0 to 1)
AngleOfAttack - The angle of attack (angle airflow vertically meets the boresight) in degrees
AngleOfSlip - The horizontal equivalent of angle of attack (degrees)
PitchAngle - The pitch of the aircraft (degrees)
RollAngle - The roll of the aircraft (degrees)
Heading - The heading of the aircraft (degrees)
Time - The time since the level loaded (seconds)
And, you get "pi" and "e" as constants for good measure.
You can now also combine these inputs in any way with this thing we call maths. The operators available currently are +, -, * and /. You can use brackets () to group statements, but otherwise order of operations applies, with * and / coming before + and -.
|
飛行データ
これに加えて、航空機からいくつかの情報にアクセスできます。
Altitude - 機体の高度(海抜高度)(単位:m)
AltitudeAgl - 機体の地面からの高度(対地高度)(単位:m)
GS - 地面に対する速度 (m/s)
IAS - 指示対気速度。ピトー管の圧力差から算出した速度差。高高度では誤差まみれで使えない (m/s)
TAS - 真対気速度。空気に対する機体の速さ。風の影響により対地速度との誤差が生じる (m/s)
Fuel - 燃料の割合 (0〜1で表す)
AngleOfAttack - 迎え角。翼弦の線に対し対気速度ベクトルのなす角(単位:度)
AngleOfSlip - AoAの水平版。単位は度
PitchAngle - 機体のピッチ(鉛直方向の角度)(単位:度)
RollAngle - 機体のロール方向の角度(単位:度)
Heading - 機体の(向いている)方位(単位:度)
Time - フライトを始めてからの時間(単位:秒)
また、適切な尺度として定数として「pi(=π)」と「e(自然対数)」を取得します。
また、これらの入力を任意の方法で、数学と呼ばれるものと組み合わせることができます。現在使用可能な演算子は、+、-、*、および/です。括弧()を使用してステートメントをグループ化できますが、それ以外の場合は、+と-の前に*と/が来る操作の順序が適用されます。
|
Functions
Finally, there's some helpful functions to do maths for you!
abs(x) - The absolute (positive) value of x.
ceil(x) - x rounded up to an integer.
clamp(x, min, max) - x clamped between min and max.
clamp01(x) - Equivalent to clamp(x, 0, 1).
deltaangle(a, b) - The shortest angle delta between angles a and b in degrees.
exp(x) - Returns e raised to the power of x.
floor(x) - x rounded down to an integer.
inverselerp(a, b, x) - Calculates the linear parameter t that produces the interpolant value within the range [a, b].
lerp(a, b, t) - Linearly interpolates between a and b, by a proportion of t.
lerpangle(a, b, t) - Similar to lerp, but interpolates correctly when values pass 360 degrees.
lerpunclamped(a, b, t) - Similar to lerp, but doesn't clamp the value between a and b.
log(x, p) - The logarithm of x in base p.
log10(x) - Equivalent to log(x, 10).
pingpong(x, l) - "Ping-pongs" the value x so it is never larger than l and never less than 0.
max(a, b) - The largest value between a and b.
min(a, b) - The smallest value between a and b.
pow(x, p) - x raised to the power of p.
repeat(x, l) - Loops the value x so it is never larger than l and never less than 0.
round(x) - Rounds x to the nearest integer.
sign(x) - The sign of x (1 if x positive, -1 if x negative)
smoothstep(a, b, t) - Similar to lerp, but with smoothing at the ends.
sqrt(x) - The square root of x.
sin(x) - The sine of x (degrees)
cos(x) - The cosine of x (degrees)
tan(x) - The tangent of x (degrees)
asin(x) - The arc-sine of x (degrees)
acos(x) - The arc-cosine of x (degrees)
atan(x) - The arc-tangent of x (degrees)
With all of these at your disposal, I'm excited to see what kind of contraptions you guys come up with, and I'm also open to some suggestions as to some things that could be added.
-WNP78, your funk master.
|
関数
最後に、数学を行うのに役立つ関数がいくつかあります!
abs(x) - xの絶対値(正の値)
ceil(x) - xの小数点以下を切り上げて整数にする
clamp(x, min, max) - xのとりうる範囲を定義する
clamp01(x) - clamp(x、0、1)と同等
deltaangle(a, b) - 2つの角度a,b(単位:度)の最小の差を計算する(度数法ゆえ360°を超えるような値で計算する時に役立つ)。
exp(x) - 自然対数eを底とした指数関数e^xを出力する
floor(x) - xの小数点以下を切り捨てて整数にする
inverselerp(a, b, x) - 閉区間[a,b]においてxを得る線形補完パラメータtを返す
lerp(a, b, t) - 閉区間[a,b]における線形補間を補完値t(ただしtは[0,1]で定義される。例としてt=0の時にa,t=1の時にbを出力する)で行う
lerpangle(a, b, t) - 角度(単位:度)の閉区間[a,b]において線形補完を行う。lerpの角度版
lerpunclamped(a, b, t) - lerp 関数と同じく線形補完を行うがtは正負いかなる値も取りうる
log(x, p) - pを底としたxの対数を出力する
log10(x) - log(x,10)に等しい。常用対数
pingpong(x, l) - 値xを閉区間[0,l]において値を行き来するように移動させる
max(a, b) - aからbの区間において最大値を出力する
min(a, b) - aからbの区間において最小値を出力する
pow(x, p) - xを底とした指数関数x^pを出力する
repeat(x, l) - 値xは閉区間[0,l]においてぐるぐると循環する
round(x) - xを四捨五入します
sign(x) - xが負なら-1、正なら1を出力する
smoothstep(a, b, t) - 閉区間[a,b]においてスムーズな非線型補完が行われる。いま、値域[a,b]に対し定義域を[a,b]とすると、dy/dxがx=aおよびx=bにおいて0になる(x軸に漸近する)よう滑らかに補完された関数y=f(x)に補完値t(ただしtは閉区間[0,1]で定義される)を代入したy=f(t)が出力される
sqrt(x) - xの平方根(√x)
sin(x) - 角度x(度)の正弦
cos(x) - 角度x(度)の余弦
tan(x) - 角度x(度)の正接
asin(x) - sinθ=xをみたすθ(単位:度)
acos(x) - cosθ=xをみたすθ(単位:度)
atan(x) - tanθ=xをみたすθ(単位:度)
これらすべてが自由に使えるようになったので、皆さんがどのような仕掛けを思いつくのかを楽しみにしています。また、追加できる可能性のあるものについての提案も受け付けています。
-WNP78, your funk master.
|