574
edits
m (Added some background) |
m (→How to install the current system on an aircraft: Better groundspeed calculation) |
||
Line 24: | Line 24: | ||
# | # | ||
# | # | ||
# Version 0. | # Version 0.15 | ||
# | # | ||
# License: | # License: | ||
Line 282: | Line 282: | ||
}, | }, | ||
_calcGroundSpeed: func () { | _calcGroundSpeed: func () { | ||
var realSpeed = me.fdm.getSpeedRelGround(); | |||
var | |||
return realSpeed; | return realSpeed; | ||
}, | }, | ||
Line 495: | Line 493: | ||
fps2kt: func (fps) { | fps2kt: func (fps) { | ||
return fps * 0.5924838; | return fps * 0.5924838; | ||
}, | |||
getSpeedRelGround: func () { | |||
return 0; | |||
}, | }, | ||
wingsFailureID: nil, | wingsFailureID: nil, | ||
Line 502: | Line 503: | ||
parents: [fdmProperties], | parents: [fdmProperties], | ||
input: { | input: { | ||
weight: "fdm/jsbsim/inertia/weight-lbs", | |||
fuel: "fdm/jsbsim/propulsion/total-fuel-lbs", | |||
simTime: "fdm/jsbsim/simulation/sim-time-sec", | |||
vgFps: "fdm/jsbsim/velocities/vg-fps", | |||
downFps: "fdm/jsbsim/velocities/v-down-fps", | |||
Nz: "fdm/jsbsim/accelerations/Nz", | |||
}, | |||
getSpeedRelGround: func () { | |||
var horzSpeed = me.fps2kt(me.input.vgFps.getValue()); | |||
var vertSpeed = me.fps2kt(me.input.downFps.getValue()); | |||
var realSpeed = math.sqrt((horzSpeed * horzSpeed) + (vertSpeed * vertSpeed)); | |||
return realSpeed; | |||
}, | }, | ||
wingsFailureID: "fdm/jsbsim/structural/wings", | wingsFailureID: "fdm/jsbsim/structural/wings", | ||
Line 515: | Line 523: | ||
parents: [fdmProperties], | parents: [fdmProperties], | ||
input: { | input: { | ||
weight: "yasim/gross-weight-lbs", | |||
fuel: "consumables/fuel/total-fuel-lbs", | |||
simTime: "sim/time/elapsed-sec", | |||
vgFps: "velocities/groundspeed-kt", | |||
downFps: "velocities/speed-down-fps", | |||
Nz: "accelerations/n-z-cg-fps_sec", | |||
}, | }, | ||
getSpeedRelGround: func () { | |||
var horzSpeed = me.input.vgFps.getValue(); | |||
var vertSpeed = me.fps2kt(me.input.downFps.getValue()); | |||
var realSpeed = math.sqrt((horzSpeed * horzSpeed) + (vertSpeed * vertSpeed)); | |||
return realSpeed; | |||
}, | }, | ||
wingsFailureID: "structural/wings", | wingsFailureID: "structural/wings", |
edits