Jump to content

mdhoover

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by mdhoover

  1. Working on it... some liberties have been taken (original jet is a B model)
  2. Don't supposed we are getting the other half of the black sea / crimea?
  3. AFAICT from the current code the groove time doesn't affect grading (though it is passed to the grading function) It is used solely to average out the accumulated groove score over the time in groove
  4. Minor Bug: You are using mm to inch conversion when converting QNH from pascals to inHg. 1 inHg = 3386.39 Pa = 33.8639 bar Therefore "c8N3yy4et1o0sOjO1UgWn4gnj" should be 1/33.8639 = 0.02953 HTH
  5. Some helpers for you (not tested in game) Not a lua coder, so hope it aint too crufty function VecDot(v1,v2) local ret = 0 for k,_ in pairs(v1) do ret = ret + v1[k] * v2[k] end return ret end -- transform a vector from frame local (body) coordinate system into global (world) -- takes -- Pos3 frame (unit.getPosition()) -- Vec3 localVec -- boolean ispoint (will translate vector if true) -- returns -- Vec3 globalVec function LocalToGlobal(frame,localVec,ispoint) local ret={} for k,_ in pairs(localVec) do ret[k] = VecDot({x=frame.x[k], y=frame.y[k], z=frame.z[k]},localVec) end -- do translation if vector is point vector if ispoint == 1 then for k,v in pairs(ret) do ret[k] = ret[k] + frame.p[k] end end return ret end -- transform a vector from global coordinate system (world) into frame local (body) -- takes -- Pos3 frame (unit.getPosition()) -- Vec3 globalVec -- boolean ispoint (will translate vector if true) -- returns -- Vec3 localVec function GlobalToLocal(frame,globalVec,ispoint) local ret={} for k,_ in pairs(globalVec) do ret[k] = VecDot(frame[k],globalVec) end -- do translation if vector is point vector if ispoint == 1 then for k,v in pairs(ret) do ret[k] = ret[k] + (VecDot(frame[k],frame.p) * -1) end end return ret end -- example usage -- For your "Fast/Slow" calls -- Assumes unit x vector corresponds to wing chord -- returns AoA in radians function getAoA(unit) local p = unit.getPosition() local v_world = unit.getVelocity() v_local = GlobalToLocal(p,v_world) return math.atan2(v_local.y,v_local.x) end
  6. May want to reconsider that atan(Z/X) you use when trying to work out the angle between carrier and aircraft (in carrier model reference frame, divide by zero). az = atan2(X,Z)*rad2deg; if az < -90 then az = az + 180; if az > 90 then az = az - 180 ; Looking forward to see what you do for the case3 marshall stack
  7. Alerax, great script. Would be a lot nicer if it wasn't totally obfuscated... Some tips. 1) Too many data conversions - you should keep displacement/velocity units in native units (metres,m/s) then convert your thresholds from ft/nm to metres for comparison 2) why return velocity magnitude (XYZ) with velocity azimuth only in XZ plane... wouldn't you want only the velocity magnitude in XZ? Any hope of you putting this up unobfuscated on GitHub so others can help contribute?
  8. SLI setup per as per prccowboy's link https://forums.eagle.ru/showpost.php?p=3410823&postcount=65 Older box, running dual GTX 780 Ti's on a Haswell-E i7-5930k (40 PCI lanes) in 1920x1080 on Caucuses (Free Flight) gets both GPU's to 100% (1 CPU core gets pegged) and never drops below 70FPS (thats when I am skimming towns or trees)... most of the time it is 80-90+. If you are going SLI, you definitely need 32 (2x16) PCI-E lanes
×
×
  • Create New...