Jump to content

Recommended Posts

Posted (edited)

hexapod motion platform user here.

i use the flyPT mover software to read the DCS telemetry.

for the longest time i have not see any data for the STALL parameter and i have not seen it work.

flyPT mover uses a lua file / script as a hook 

inspecting the lua file, data is in a function called DCSClient:send with the following program

    socket.try(DCSClient:send(
    --               00   01   02   03   04   05   06   07   08   09   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24
    string.format("%.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f %.4f", 
    acceleration.x,                             -- 00 = Lateral acceleration (G)
    acceleration.z,                             -- 01 = Lateral acceleration (G)
    acceleration.y,                             -- 02 = Vertical acceleration (G)
    speed.x,                                     -- 03 = Lateral speed (m/s)
    speed.z,                                     -- 04 = Longitudinal speed (m/s)
    speed.y,                                     -- 05 = Vertical speed (m/s)
    rotationSpeed.y,                             -- 06 = Rotation speed around y (yaw in rad/s)
    rotationSpeed.x,                             -- 07 = Rotation speed around x (roll in rad/s)
    rotationSpeed.z,                             -- 08 = Rotation speed around z (pitch in rad/s)
    o.Heading,                                     -- 09 = Yaw position (rad)
    o.Bank,                                     -- 10 = Roll position (rad)
    o.Pitch,                                     -- 11 = Pitch position (rad)
    Export.LoGetTrueAirSpeed(),                 -- 12 = Air speed (m/s)
    Export.LoGetAircraftDrawArgumentValue(1),     -- 13 = Front/Rear landing gear (0 to 1)?
    Export.LoGetAircraftDrawArgumentValue(2),     -- 14 = Turning landing gear (0 to 1)?
    Export.LoGetAircraftDrawArgumentValue(4),    -- 15 = Left landing gear (0 to 1)?
    Export.LoGetAircraftDrawArgumentValue(6),     -- 16 = Right landing gear (0 to 1)?
    Export.LoGetAltitudeAboveGroundLevel(),     -- 17 = Vertical position relative to ground (m)
    mechInfo.flaps.value,                         -- 18 = Flaps amount (%)
    mechInfo.gear.value,                         -- 19 = Delployed landing gear (%)
    mechInfo.speedbrakes.value,                 -- 20 = Speed brakes (%)
    mechInfo.canopy.value,                         -- 21 = Canopy open (%)
    stall,                                         -- 22 = Stall alarm (0 or 1)
    Export.LoGetAngleOfAttack(),                 -- 23 = Angle of attack
    Export.LoGetModelTime()                     -- 24 = Time in seconds
    )))

i notice that the is something wrong with the Stall variable

if someone out there that knows lua export variables... please share what the correct variable name is, and if it is in the correct position in the data structure array....

would appreciate!

Edited by hannibal

find me on steam! username: Hannibal_A101A

http://steamcommunity.com/profiles/76561197969447179

Posted

after some investigation, i see that the stall is formulated from the Export.LoGetMCPState() function with a data structure in boolean states 1 for true, 0 for false.

in the mover lua file is the script

    local alarm = Export.LoGetMCPState()
    --[[
        returned table keys for LoGetMCPState():
        "LeftEngineFailure"
        "RightEngineFailure"
        "HydraulicsFailure"
        "ACSFailure"
        "AutopilotFailure"
        "AutopilotOn"
        "MasterWarning"
        "LeftTailPlaneFailure"
        "RightTailPlaneFailure"
        "LeftAileronFailure"
        "RightAileronFailure"
        "CanopyOpen"
        "CannonFailure"
        "StallSignalization"
        "LeftMainPumpFailure"
        "RightMainPumpFailure"
        "LeftWingPumpFailure"
        "RightWingPumpFailure"
        "RadarFailure"
        "EOSFailure"
        "MLWSFailure"
        "RWSFailure"
        "ECMFailure"
        "GearFailure"
        "MFDFailure"
        "HUDFailure"
        "HelmetFailure"
        "FuelTankDamage"
    ]]--
    local stall = 0
    for k,v in pairs(alarm) do
        if k == "StallSignalization" then 
            if v == true then
                stall = 1
            end
        end
    end

 

after trying "CanopyOpen" as a test, i can see states change in the game when i open close the canopy.

how ever results from the "StallSignalization" does not change.. and seems to stay in a false state..

any advice?

find me on steam! username: Hannibal_A101A

http://steamcommunity.com/profiles/76561197969447179

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...