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!
The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!
See you on our MobiFlight Community Discord server.
A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.
The forum is still providing a lot of good content, hence we keep this information accessible.

Command 0x0892 UINT16 1 >1 sim/magnetos/magnetos_off_1 _
Command 0x0892 UINT16 1 1 sim/magnetos/magnetos_off_1 _
Command 0x0892 UINT16 1 0 sim/magnetos/magnetos_off_1 _

Again sorry i can´t directly help you here....
Maby next step is to "understand" the parameters of the XPUIPC File. You just explane that shortly in the Vid.
The Readme of XPUIPC say.... First number is 1 for toggle or 0 for hold function
the second Number is the Indicator.
So "bla bla bla 1,1" means it toggle the command ONE TIME if Offset change to "1" .
If its already "1" nothing happen and you must write it to another value ( Zero e.g.) and then again to "1" to fire the action again.
As you explane this work with "if($=1,0,1) " . But that also mean you need TWO detents.... the first execute the action.... the second reset the "offset" .
Solution:
Try if you can use a mathematical syntax in this code line.
Command 0x0892 UINT16 1 >1 sim/magnetos/magnetos_off_1 _
With this "bigger then >" trick normaly all numbers greater then 1 will fire the action.
Now a simple "$+1" in Mobiflight will work.
I´m NOT sure if its possible to use operators in this code part. Try out !
EDIT: Another Alternate will be to add 2 Lines here.
Command 0x0892 UINT16 1 1 sim/magnetos/magnetos_off_1 _
Command 0x0892 UINT16 1 0 sim/magnetos/magnetos_off_1 _
Now Both values ( 0 or 1) will fire a command. With "if($=1,0,1) this also should work !
Hi Pizman,
I love the way you try helping people somehow![]()
The syntax you mention is quoted as "expressions" in xpuipc system, used only for Dataref's and added to the end of each command line.
I think i'm missing a very simple point but i don't know what it is
By the way "_" is used for multiple commands and means kind of "and" command, when you don't use it, means that those command series end.
Again sorry i can´t directly help you here....
Maby next step is to "understand" the parameters of the XPUIPC File. You just explane that shortly in the Vid.
The Readme of XPUIPC say.... First number is 1 for toggle or 0 for hold function
the second Number is the Indicator.
So "bla bla bla 1,1" means it toggle the command ONE TIME if Offset change to "1" .
If its already "1" nothing happen and you must write it to another value ( Zero e.g.) and then again to "1" to fire the action again.
As you explane this work with "if($=1,0,1) " . But that also mean you need TWO detents.... the first execute the action.... the second reset the "offset" .
Solution:
Try if you can use a mathematical syntax in this code line.
Command 0x0892 UINT16 1 >1 sim/magnetos/magnetos_off_1 _
With this "bigger then >" trick normaly all numbers greater then 1 will fire the action.
Now a simple "$+1" in Mobiflight will work.
I´m NOT sure if its possible to use operators in this code part. Try out !
EDIT: Another Alternate will be to add 2 Lines here.
Command 0x0892 UINT16 1 1 sim/magnetos/magnetos_off_1 _
Command 0x0892 UINT16 1 0 sim/magnetos/magnetos_off_1 _
Now Both values ( 0 or 1) will fire a command. With "if($=1,0,1) this also should work !