Activate LED lights by assigning FSUIPC offsets in MobiFlight Connector using LUA Scripts Flight Sim

  Рет қаралды 3,760

Aaron Werner

Aaron Werner

Күн бұрын

In this video I show you how to set up an LED light to fire off when a Specific events happens in your SIM

Пікірлер: 71
@user-ft4it3tm3u
@user-ft4it3tm3u 4 жыл бұрын
Appreciate your video guide, finally know how to set this up, thank you :-)
@SPLBaart
@SPLBaart 10 күн бұрын
Hi, Does the ''name'' of the Lvar in the [Auto] section need to be the exact name of the Lvar? And if not, what does the script look like then? Some Lvars for my project seem to have too many characters. Thanks, Stijn
@philipjensen6442
@philipjensen6442 4 жыл бұрын
sorry just saw this video after my previous comment. What does the "500" represent? cheers
@AaronWerner
@AaronWerner 2 жыл бұрын
This is the value assigned. From my understanding (very limited) it controls the intervals related to the polling for that specific item. For example, if you were writing it to turn the ignition key in an aircraft to the "On" position it would require a 100 to complete this. I have had to do a lot of trial and error with the values. There may be a better guide or instructions on this you could find. If you happen across more info. Please come back to this post and update us. A few other items in the script that may help yu understand it. Offsets: Available offsets to write data to are 66C0 to 66FF. As it relates to bit data: Example ipc.writeXX( 0x66C0, apu_master_light) -- write the Lvar state to location 0x66C0 where the XX is one of the following depending on the data format of the read Lvar, and thus the format of apu_master_light: UB unsigned 8-bit byte
 UW unsigned 16-bit word
 UD unsigned 32-bit dword
 SB signed 8-bit byte
SW signed 16-bit word 
SD signed 32-bit dword
 DD signed 64-bit value
 DBL 64-bit double floating point
 FLT 32-bit single floating point In the case above, if the variable state is either 1 or 0 (for On and Off) you should be able to use the UB data format: ipc.writeUB( 0x66C0, apu_master_light)
@harpoon_bakery162
@harpoon_bakery162 3 жыл бұрын
great vid, is it possible to assign "in-transit" red led and "3-green" green LED to a landing gear light-set (using RGB lights for red & green) ... so i would have 3 single led's next to a gear lever and since they are RGB, they would either be OFF state, ON GREEN state, ON RED state for Landing Gear UP, Landing Gear DOWN, Landing Gear IN-TRANSIT respectively using MOBI-FLIGHT or similar program? (Mobi-Flight has 2020 compatibility now, that's why i mentioned that one). Thanks in advance!!!
@AaronWerner
@AaronWerner 3 жыл бұрын
Yes it is possible. You need to dump the LVARS into the log file as I showed in my video on lvars. Locate the lvar associated with the red / green state. Assign those as shown in video.
@harpoon_bakery162
@harpoon_bakery162 3 жыл бұрын
@@AaronWerner -- great, i will review the video again and look for LVARS !!! perfect, thanks!!!
@Grateful0nee
@Grateful0nee 4 жыл бұрын
Off topic . I’ve been watching some videos on Arbitrage . Do you have a website or information on it. I liked your Arbitrage pro. Thank you for your time.
@AaronWerner
@AaronWerner 4 жыл бұрын
Kevin, I had the software built in Python and lost my developer. I am looking for a PHP programmer that may be willing to step in and convert it to PHP. If you know any, send them my way. Thanks for your interest.
@Grateful0nee
@Grateful0nee 4 жыл бұрын
Ok I’ll keep on the look out , any you recommend for now?
@Grateful0nee
@Grateful0nee 4 жыл бұрын
I have a question is a money transmitter license serious thing for cryptocurrency in the state Of Georgia? I ask because I was opening a binance account which my state wasn’t covered. Do you know anything about this as I’m looking to Exchange?
@AaronWerner
@AaronWerner 4 жыл бұрын
@@Grateful0nee Gunbot
@AaronWerner
@AaronWerner 4 жыл бұрын
@@Grateful0nee If you are buying crypto and reselling it to individuals on the open market (street trading) as a business, then you will need to register as an MSB. If you are just trading it on an exchange (arbitrage) you do not need an MSB. Each state has its own laws when it comes to crytpo. I have a good friend in Atlanta and he had to set up his company in Texas and operate it out of Texas as an MSB to street trade. This was back in the day and he is no longer doing it. Check Fincen and your state laws for clarification. You can also email the person in charge of MSB's and ask them and they are more than happy to help guide you to the correct answer.
@jmsiqueira1989
@jmsiqueira1989 2 жыл бұрын
Thank you so much for the video! Would you be so kind to tell in which site I can find those available offsets? Regards
@AaronWerner
@AaronWerner 2 жыл бұрын
www.fsuipc.com/ Just look for the SDK link
@jmsiqueira1989
@jmsiqueira1989 2 жыл бұрын
Thks! Used your video using the Lvars for the Inputs and worked perfectly! Really happy, but I am really struggling with the Output. I followed every step several times but not managing to fire the light! I got the Lvar (L=embApFlchClick) and placed exactly in the Lua file as you instructed.
@AaronWerner
@AaronWerner 2 жыл бұрын
@@jmsiqueira1989 are you sure that is the correct LVar? Have you dumped all your LVARS into the log file to make sure you are using the correct one?
@AaronWerner
@AaronWerner 2 жыл бұрын
Are you using MObiflight for the output to fire the LED?
@AaronWerner
@AaronWerner 2 жыл бұрын
@@jmsiqueira1989 Also...have you assigned a proper FCUIPS number to hold the data for the LED?
@jonvivash168
@jonvivash168 11 ай бұрын
You mention a video about how to find the LVAR list formy aircraft. Can you point meto that video please?
@AaronWerner
@AaronWerner 11 ай бұрын
It depends if you’re using p3d or the new MSFS2020 If you’re running the new FSUIPCS there is an option to print the vars in the menu Otherwise, in this video, I show you another way to do it. kzfaq.info/get/bejne/o7V_ZpV3zrOyg2Q.html
@fabiofarinon3988
@fabiofarinon3988 2 жыл бұрын
Hi, thanks a lot for your videos. I strictly follow your instructions but it doesn't work. Is it possible that something change with the latest version of Mobiflight and FSUIPC6? Do you know where I can find a tutorial or information about this?
@AaronWerner
@AaronWerner 2 жыл бұрын
Did you restart the sim?
@AaronWerner
@AaronWerner 2 жыл бұрын
I am not sure if something changed in the latest. It is possible. Can you download an earlier version and test it?
@fabiofarinon3988
@fabiofarinon3988 2 жыл бұрын
I think that something change, since I also followed your instructions in another video "Lua script and macro no FSUIPC offset" and it didn't work. So I tried in a different way, I didn't edit the Macro (I left the macro as the mouse macro originally created by FSUIPC), then in Mobiflight under FSUIPC Lua Script I edit file name:file name, for example my macro file is EFIS_CSTR I then write EFIS_CSTR:EFIS_CSTR and magically it worked. Regarding the MOBIFLIGHT output I am lost, I tried in many different ways and I couldn't. If you have any ideas please let me know. Do you know where I can find an earlier version of Mobiflight?
@AaronWerner
@AaronWerner 2 жыл бұрын
@@fabiofarinon3988 I might have an older version but I would like to figure out what changed. I have not worked on my sim for a few months and if there is a change we need to identify what and how to work around it. I will try to spend some time on it this week with the latest version. Send me a copy of your code and I will try to replicate it.
@Timshaodreamer
@Timshaodreamer 9 ай бұрын
@@fabiofarinon3988 Hi, I am wondering if you have figured out how to get the LED worked?
@TheFabix84
@TheFabix84 3 жыл бұрын
Hi, is it possible to run a fsuipc .lua file directly via MobiFlight Macro System?
@AaronWerner
@AaronWerner 3 жыл бұрын
Yes. Go through my other videos on my channel to learn more about this.
@CaptMeMo_350
@CaptMeMo_350 3 жыл бұрын
which board did you use?
@AaronWerner
@AaronWerner 2 жыл бұрын
In this example I am using the Arduino Mega.
@chomanthapa
@chomanthapa 3 жыл бұрын
Why exactly do you need an offset when you have an lvar? I really don't understand offset and why is it required?
@AaronWerner
@AaronWerner 3 жыл бұрын
From my understanding early on in the sim world, data was stored in offsets. So earlier aircrafts leaned on offsets as a method for controlling the data. Later aircraft designers started using variables and as a result, we have LVARS and scripts like LUA. In examples like the one in this video we are somewhat piggybacking off of existing tech (FSUIPC) and bridging it with the LVARS using middleware like MobiFligth Controller. It is just a point and click solution that eliminates a person having to code the behaviors of the aircraft and hardware.
@chomanthapa
@chomanthapa 3 жыл бұрын
@@AaronWerner got it. Thnx
@CaptMeMo_350
@CaptMeMo_350 3 жыл бұрын
@@AaronWerner can we create our offsets?
@AaronWerner
@AaronWerner 3 жыл бұрын
@@CaptMeMo_350 Yes if you look at the video above you can see a write statement. You can assign your data to an offset as shown in the example I provide
@CaptMeMo_350
@CaptMeMo_350 3 жыл бұрын
@@AaronWerner man I have just discovered your channel and its like a treasure for me :)). those are the stuff that I was looking for. Very very appreciate indeed
@maskystudio9193
@maskystudio9193 3 жыл бұрын
Hi sir can u give. Example lua script editor
@AaronWerner
@AaronWerner Жыл бұрын
I use notepad or text editor, bbedit on mac.
@Grateful0nee
@Grateful0nee 4 жыл бұрын
Got you appreciate it , so what are you doing now? You have any courses that can help me out in the Crypto world? I’m selling bitcoin on Paxful so far its smooth but want to leverage faster and get more supply of it at a lower fee. That’s where I bumped into your channel. Eventhough I’m noob in this it’s really cool how many ways you can arbitrage like in ur old videos. It’s just finding that rinse and repeat operation .
@AaronWerner
@AaronWerner 3 жыл бұрын
I do have a crypto opportunity but you will need to contact me at myflightdeck@gmail.com. I do not discuss it on youtube to avoid any potential issues now or in the future. If you or anyone else is wanting to learn more about how to get into the crypto space and make money just shoot me an email.
@maskystudio9193
@maskystudio9193 3 жыл бұрын
I follow your instructions .but still can't read my value offset
@AaronWerner
@AaronWerner 3 жыл бұрын
My guess is that you may be using an offset that is already assigned to something else, if not, make sure you name the file correctly and the code matches exactly like the code in the video except the actual offset that is assigned and the name of the LVAR. Also, remember when adding Lua scripts you have to define them in your fsuipc INI file in order for them to load upon startup.
@maskystudio9193
@maskystudio9193 3 жыл бұрын
@@AaronWerner in my case ,I fly a2a Cessna c172. Name file at module" Lkap140_hdg.lua" In file fsuipc.ini edit . Auto 1= Lkap140_hdg.lua
@AaronWerner
@AaronWerner 3 жыл бұрын
@@maskystudio9193 post a copy of your code here.
@AaronWerner
@AaronWerner 3 жыл бұрын
Also did you restart after editing the FSUIPC.ini file?
@maskystudio9193
@maskystudio9193 3 жыл бұрын
U mean restart prepare3d
737 DIY MCP - SWITCHES & LEDS WITH MOBIFLIGHT/PROSIM
18:47
Karl Clarke
Рет қаралды 68 М.
Каха ограбил банк
01:00
К-Media
Рет қаралды 10 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 93 МЛН
Flight Simulator Lua Script & Macro for non-fsuipc aircraft
9:04
PROGAMANDO DISPLAY LCD NO MOBIFLIGHT
22:01
Fábio Santos
Рет қаралды 2,8 М.
#25 FSUIPC7 & WideFS
5:50
Simply Simulator
Рет қаралды 10 М.
FSUIPC :)
14:22
Yaaseen Quraishi
Рет қаралды 12 М.
MOBIFLIGHT TUTORIAL #1 - AUTOPILOT BUTTONS AND LEDs
9:36
HomeSim Ireland
Рет қаралды 3,3 М.
How To Use A Toggle Switch With FSX | MobiFlight Tutorial
4:46
Captain Bob
Рет қаралды 12 М.
VOCÊ ME AJUDARIA ?
0:46
JHONIC
Рет қаралды 21 МЛН
3M❤️ #thankyou #shorts
0:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 5 МЛН
Berbagi lolipop ke orang buntung‼️
0:14
Abil Fatan Key
Рет қаралды 8 МЛН
Dekho Anaya Ne Kaise Mnaya Apna Birthday 🎂🎉
0:46
Anaya Kandhal
Рет қаралды 54 МЛН
Repeat 🥴🤣 LeoNata family #shorts
0:11
LeoNata Family
Рет қаралды 15 МЛН
The little girl just wanted to help 😭😳😔
0:45
Family Fast Five
Рет қаралды 9 МЛН