MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

icon
Avatar
patchoq
From: Saint-Jerome, Canada
Posts: 7
Hi guys

So I try to start my CRJ cockpit but can't seems trigger events to make, firstly, the master caution button

Here's my events setup

msfs2020_eventids_user.cip
ASCRJ MASTER:GROUP
ASCRJ_MASTER_WARN
ASCRJ_MASTER_CAUT

events.user.txt
//ASCRJ MASTER
ASCRJ_MASTER_WARN#(L:ASCRJ_MASTER_WARN_BTN,Bool) ! (>L:ASCRJ_MASTER_WARN,Bool)
ASCRJ_MASTER_CAUT#(L:ASCRJ_MASTER_CAUT_BTN,Bool) ! (>L:ASCRJ_MASTER_CAUT,Bool)


Am I missing something?

Images here
https://drive.google.com/file/d/15Amwn2MFUOutzVvLeeAs2_2sV5ErEjii/view?usp=sharing
https://drive.google.com/file/d/1_FGa3P3ltfxnc4VTCjSPS1PshkjFTttk/view?usp=sharing
2021-04-17 17:59
Avatar
erocfx
Posts: 16
I think for your msfs2020_eventids_user.cip you would want

ASCRJ MASTER:GROUP
ASCRJ_MASTER_WARN_BTN
ASCRJ_MASTER_CAUT_BTN
2021-04-17 19:42
Avatar
patchoq
From: Saint-Jerome, Canada
Posts: 7
@erocfx

Thanks, trying that
2021-04-17 20:21
Avatar
patchoq
From: Saint-Jerome, Canada
Posts: 7
OH!! think I got it to work!! :-D

Now first lua for the leds I guess lol
[Last edited by patchoq, 2021-04-17 20:46]
2021-04-17 20:33
Avatar
erocfx
Posts: 16
I haven't been able to get LEDs or 7-segments working yet. Let me know if you make any progress!
2021-04-17 22:59
Avatar
patchoq
From: Saint-Jerome, Canada
Posts: 7
Ok I'm trying to get the value of these for testing

Here's the LUA I created

crj-custom.lua

master_warn = ipc.readLvar("L:ASCRJ_GSC_MASTER_WARN_ON")
ipc.writeUD(0x66C0,master_warn)

master_caut = ipc.readLvar("L:ASCRJ_GSC_MASTER_CAUT_ON")
ipc.writeUD(0x66D0,master_caut)

master_warn2 = ipc.readLvar("L:ASCRJ_MASTER_WARN")
ipc.writeUD(0x66E0,master_warn2)

master_caut2 = ipc.readLvar("L:ASCRJ_MASTER_CAUT")
ipc.writeUD(0x66F0,master_caut2)


In the .ini of FSUIPC

[Auto.CRJ700]
1=Lua crj-custom

Not sure if everything is set ok, I'm new to this
2021-04-19 04:58
Avatar
patchoq
From: Saint-Jerome, Canada
Posts: 7
Finally got it to work

I needed to purchase the fsuipc license to get the lua to work.
2021-04-20 02:20
Avatar
user.exe
Posts: 1
Something went wrong.
I downloaded the latest version of events.txt but when executing commands
ASCRJ_FCP_ALT_SEL_INC # (L: ASCRJ_FCP_ALT_CHANGE, 1) ++ (> L: ASCRJ_FCP_ALT_CHANGE)
ASCRJ_FCP_ALT_SEL_DEC # (L: ASCRJ_FCP_ALT_CHANGE, 1) - (> L: ASCRJ_FCP_ALT_CHANGE)
Nothing happens.
The following lines have been added to the cip file:
ASCRJ_FCP_ALT_SEL_INC
ASCRJ_FCP_ALT_SEL_DEC
However, the encoders do not change the altitude value.
Then I figured out that none of the crj commands are being executed for some reason. For me, the only way to influence this plane is with the mcro files with FSUIPC.
What am I doing wrong?
2021-04-30 16:38
icon