Jump to content
Sign in to follow this  
Claudie42

Function Shifted problem

Recommended Posts

Bonsoir , :rolleyes:

 

Translation google !

I just installed the 2.63 release here seems ok, I found the various functions of my joystick.

But I do not understand how to use the two functions 'Shifted' 1 and 2.

I created three different functions 'test' on the same button.

a- 1 without checked Shifted: toggle gear

b-2 by checking Shifted 1 Parking brake  , a new page is displayed with the function, but 'onpress, on repeat, on release

are in red  is this normal ?

c- 3 by checking Shifted 2: Battery toggle , with the function, but 'onpress, on repeat, on release  are in green ?


If I press (a) the function is ok  gear is  down , up

While I support (b) shift + left button = Parking brake is not working !

if I press (c) shift + right button = battery  is not open

Thanks for your help

 

Share this post


Link to post
Share on other sites

Hi,

 

just to make sure: "Shift" does not refer to the Shift key on the keyboard but to the joystick button you defined as the Shift Button in Linda. You will therefore have to define a button of one of your input devices as the Shift Button first. Please note that there are two Shift Modes: Local (Shift is only applied to the joystick where the Shift Button is located) and Global (Shift is applied to the buttons of all joysticks being connected to your system).

 

Peter

Share this post


Link to post
Share on other sites

Bonjour Peter :rolleyes:

 

A thousand times thank you Peter for your answer, here is two days that I blocked on the issue.
Indeed, I do not risk getting there, saw total confusion :(
the key 'shift' that I understood as the shift key.

 

Good Day

Share this post


Link to post
Share on other sites

I still pull my hair out here .... even starting to annoy me!

Here are the settings in pictures I did:

Home Page: Button # 4 park brake

linda1.JPG

 

page 2 red 'press, repeat ..', where I checked shif t1 ', I assign to the button 3 overall for all my ###### joystick.

 

linda2.JPG


page 3 and I checked 2 green shift 'pres ....' and the same button '4' as Page 1 I assign the second function 'gear'

linda3.JPG

And although here, the button '4' alone or with pressing 3 does not move the brake nor the train! E_colere

linda watching the console displays an error that has no place it seeks a file and then shows no file that the file exists. Then refers to init.lua file, error line 41.

 

linda4.JPG

 

Here file init.lua :

 

 

- INITIALISATION
-- Updated for LINDA 2.6
-- Jan 2015

-- ****************************************************************
--
--      DO NOT EDIT OR CHANGE THE CONTENTS OF THIS FILE
--
--      CORE LINDA FUNCTIONALITY
--
--      NOTE - Compatibility with the original MCP1 is untested
--             and correct operation cannot be guaranteed.
--             If you experience problems with LINDA 2.xx then
--             try LINDA 1.13.
--
-- ****************************************************************

if ipc.get("acft_handle") == nil then
    ipc.log("[iNIT] Check the loader enabled and started!")
    return
end

-- communication offsets
x_RELOAD = 0x7320  -- 1/0 reload configs
x_EXEC = 0x7321    -- action string max 32 bytes
x_QUEUE = 0x735F   -- queue flag - 1:busy, 0:ready to receive

-- var hunter
require(ipc.get("PATH_SYS") .. "hunter")

-- Loading common functions and actions
require(ipc.get("PATH_SYS") .. "common")

_log("[iNIT] Starting Initialisation...")

-- loading optional libraries
if ipc.get("LIBREQ") ~= "" then
    libs = split(ipc.get("LIBREQ"), "#")
    for i,req in pairs(libs) do
        _log("[iNIT] loading optional library: " .. req)
        require(req)
    end
end


-- Initialize system variables
_log('[iNIT] Initializing Common Variables...')
CommonInitVars ()

-- main joystick config
if ipc.get("HID_ENABLED") == 1 then
    require(ipc.get("PATH_SYS_CFG") .. "config-hid")
end

-- Loading aircraft module
require(ipc.get("PATH_ACFT") .. ipc.get("acft_handle") .. "/actions")

-- user global settings
config = ipc.get("PATH_SYS_CFG") .. "config-user"
if file_exists(config .. ".lua") then
    require(config)
    _log("[iNIT] User GLOBAL config loaded...")
end

-- user aircraft module overrides
config = ipc.get("PATH_ACFT") .. ipc.get("acft_handle") .. "/user"
if file_exists(config .. ".lua") then
    require(config)
    _log("[iNIT] User FUNCTIONS loaded...")
end

-- Loading aircraft module asignments
if ipc.get("VRI_ENABLED") == 1 then
    config_mcp = ipc.get("PATH_ACFT_CFG") .. ipc.get("acft_handle")
        .. "/config-" .. ipc.get("VRItype")
    if file_exists(config_mcp .. ".lua") then
        require(config_mcp)
        _log("[iNIT] VRI MCP config loaded...")
    else
        _err("[iNIT] MCP configs not found for current aircraft! " .. config_mcp)
        _log("*************** USER ACTION REQUIRED ****************")
        _log("Open GUI and click on MCP Combo Button to create ")
        _log("configuration files from default or templates. ")
        _log("If no MCP connected then ensure it is disabled in ")
        _log("Setup MCP Combo, then click 'Reload Lua engine' ")
        _log("to restart.")
        _log("*************** USER ACTION REQUIRED ****************")
        ipc.display("[iNIT] MCP configs not found for current aircraft. Run GUI!" , 30)
        ipc.set("VRI_ENABLED", 0)
    end
end

-- Loading main engine
if ipc.get("HID_ENABLED") == 1 then
    require(ipc.get("PATH_SYS") .. "handlers-hid") end

if ipc.get("VRI_ENABLED") == 1 then
    require(ipc.get("PATH_SYS") .. "handlers-"
        .. ipc.get("VRItype"))
end

require(ipc.get("PATH_SYS") .. "events")

-- Initialize finally
_log("[iNIT] Finalising Initialisation...")
Init () -- calls Init() function in common.lua

--if HID config found and ready
if ipc.get("HID_ENABLED") == 1 then

    -- Initialize HID devices
    _log("[iNIT] Initialising HID devices...")
    hidInit ()

    -- loading fallback assignments HID config
    local config_hid = ipc.get("PATH_ACFT_CFG")
        .. "FSX default/config-hid"
    if file_exists(config_hid .. ".lua") then
        _log("[iNIT] Loading a fallback joysticks config...")
        require(config_hid)
    end


    -- loading this aircraft assignments HID config
    local config_hid = ipc.get("PATH_ACFT_CFG")
        .. ipc.get("acft_handle") .. "/config-hid"
    if file_exists(config_hid .. ".lua") then
        _log("[iNIT] Loading " .. ipc.get("acft_handle")
            .. " joysticks config...")
        require(config_hid)
    end
end

_log("[iNIT] Module: " .. ipc.get("acft_handle") .. " Started...")

EVENTS_INIT = true

-- Event to catch VRI commands from COM-port qqqqqqq
if ipc.get("VRI_ENABLED") == 1 and dev > 0 then
    -- main event
    -- event.com (dev, 8, 8, -1, 'MCPcontrols')
    event.vriread(dev, "MCPcontrols")
    -- sync back
    if ipc.get("VRItype") ~= 'mcp2a' and not Airbus then
       event.offset(0x07E2, "UW", "SyncBackSPD")
       event.offset(0x07CC, "UW", "SyncBackHDG")
       event.offset(0x07D4, "UD", "SyncBackALT")
       event.offset(0x07F2, "UW", "SyncBackVVS")
       event.offset(0x0C4E, "UW", "SyncBackCRS")
       event.offset(0x0C5E, "UW", "SyncBackCRS2")
    end
end

-- auto flight save
_log('[iNIT] Initiating Autosave ' .. tostring(EVENTS_INIT))
event.offset(0x0366, "UW", "AutoSaveArm") -- on ground
if AUTOSAVE_ENGINE_CHECK == 1 then -- engines
    event.offset(0x0894, "UW", "AutoSaveEvent")
    event.offset(0x092C, "UW", "AutoSaveEvent")
    event.offset(0x09C4, "UW", "AutoSaveEvent")
    event.offset(0x0A5C, "UW", "AutoSaveEvent")
end

-- set up autosave events
if AUTOSAVE_MAGNETO_CHECK == 1 then
    event.offset(0x0892, "UW", "AutoSaveEvent") end -- magneto
if AUTOSAVE_BATTERY_CHECK == 1 then
    event.offset(0x281C, "UD", "AutoSaveEvent") end -- battery
if AUTOSAVE_PARKING_CHECK == 1 then
    event.offset(0x0BC8, "UW", "AutoSaveEvent") end -- parking brake
if AUTOSAVE_LIGHTS_CHECK == 1 then
    event.offset(0x0D0C, "UW", "AutoSaveEvent") end -- lights

-- set up timer events
event.offset(x_RELOAD, "UB", 1, 'offset_reloadConfigs')
event.offset(x_EXEC, "STR", 60, 'offset_executeCommand')
event.timer(10, "hidPoll") -- main timer event 100Hz

EVENTS_INIT = false

if (_MCP2 () or _MCP2a ()) then Default_COM_1_init () end

-- drop commands queue flag
ipc.writeUB(x_QUEUE, 0)

if ipc.get("VRI_ENABLED") ~= 1 then
    ipc.display('LINDA is started! Ready to go!', 5)
end

_log("[iNIT] Ready to go, Captain!")

 

Merci for your  help .

Share this post


Link to post
Share on other sites

I finally handed the 2.57 version and I have not linda error in the console.

I put the patch Shifted, unfortunately I still can not to have two functions of a button!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...