Rotary Encoder MobiFlight LVars
-
- Posts: 10
- Joined: Mon Aug 30, 2021 1:28 am
- Location: Juneau, Alaska
- Contact:
Rotary Encoder MobiFlight LVars
Hello,
I have been trying to get this to work for hours days now - and I assume it is easy but I just cannot figure this out. I just started using MobiFlight and bought an Arduino Mega. Now, this isn't my first Arduino project at all, and I have been working on some C# (SimConnect) stuff with displays, but this has me stumped. I am trying to make a rotary encoder turn the 'INSTR INDIRECT' so when I enter into a dark plane I can turn my Battery on and then turn this dial so I can get some light to be able to finish the startup procedure.
In the 'LVARS' Excel Sheet pinned to the top it shows:
In MobiFlight, I have the following screen when choosing FSUIPC Offset. I've tried quite a few different ways and nothing seems to work. The encoder is getting recognized because the debug log shows it is registering:
I've tried --, -1 but I can't get it to rotate
What do I put in the set value?
I have been trying to get this to work for hours days now - and I assume it is easy but I just cannot figure this out. I just started using MobiFlight and bought an Arduino Mega. Now, this isn't my first Arduino project at all, and I have been working on some C# (SimConnect) stuff with displays, but this has me stumped. I am trying to make a rotary encoder turn the 'INSTR INDIRECT' so when I enter into a dark plane I can turn my Battery on and then turn this dial so I can get some light to be able to finish the startup procedure.
In the 'LVARS' Excel Sheet pinned to the top it shows:
Code: Select all
147 OVH - INSTR INDIRECT (LEFT CLICK) (L:0x1110C, enum) ++ 30 min (>L:0x1110C, enum) 0x1110D (>L:L_EVENT,enum)
148 OVH - INSTR INDIRECT (RIGHT CLICK) (L:0x1110C, enum) -- 0 max (>L:0x1110C, enum) 0x1110C (>L:L_EVENT,enum)
I've tried --, -1 but I can't get it to rotate
What do I put in the set value?
- Attachments
-
- MobiFlight.png (25.07 KiB) Viewed 1260 times
- Slayer
- Posts: 1517
- Joined: Sat Mar 08, 2014 3:26 am
- Contact:
Re: Rotary Encoder MobiFlight LVars
Maybe ask in the KA 350i general product forum, there are a couple of other users with full cockpit builds as well.
-
- Posts: 10
- Joined: Mon Aug 30, 2021 1:28 am
- Location: Juneau, Alaska
- Contact:
Re: Rotary Encoder MobiFlight LVars
Ok, sorry about that, I'm still getting my bearings around here!
I've asked here: https://milviz.com/forum/viewtopic.php?f=104&t=13364
I've asked here: https://milviz.com/forum/viewtopic.php?f=104&t=13364
-
- Posts: 10
- Joined: Mon Aug 30, 2021 1:28 am
- Location: Juneau, Alaska
- Contact:
Re: Rotary Encoder MobiFlight LVars
Alright, so this is not exactly about the rotary encoder, but I'm trying to do some other things like turn the beacon light on from my yoke and the sim counteracts my 'toggle' command with an immediate command to toggle it the other way. I'm still trying to figure out how to do advanced mobiflight stuff with rotary encoders and I'll be sure to keep my other post updated on the other post I made.
I made a short video to show what it's doing.
https://www.youtube.com/watch?v=srVkCkok5dg
I made a short video to show what it's doing.
https://www.youtube.com/watch?v=srVkCkok5dg
-
- Posts: 10
- Joined: Mon Aug 30, 2021 1:28 am
- Location: Juneau, Alaska
- Contact:
Re: Rotary Encoder MobiFlight LVars
I just want to update, I figured it out. If someone could update the KA350i_Commands to add the following, it would hopefully save a headache or two. But it's simply:
L:B350i_BeaconLights, L:B350i_TaxiLights, B350i_NavigationLights, B350i_StrobeLights, etc...
L:B350i_BeaconLights, L:B350i_TaxiLights, B350i_NavigationLights, B350i_StrobeLights, etc...