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! 

05/03/2024 - This forum is read-only

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.

icon
Avatar
Honey
Posts: 4
Supporter
I can deactivate the standard offset and enable my activation for example 0810 Autothrottle arm for the FF767 -
# MCP atarm Toggle
Dataref ATARM 1-sim/AP/atSwitcher int
Offset 0x5310 UINT32 4 rw $ ATARM
Mobiflight seem to ignore that, at least the switch does not work
Uwe
2021-03-14 12:16
Avatar
Banzai
From: France
Posts: 90
hi

for a toggle or switch input you need to use the "Command" syntax not Dataref word
#MCP atarm Toggle
Command 0x5310 UINT8 1 0 1-sim/AP/atSwitcher _
0 1 1-sim/AP/arSwitcher

look at the tuto

https://www.mobiflight.com/forum/topic/2926.html
2021-03-14 16:19
Avatar
Honey
Posts: 4
Supporter
Hello, too, I have already tried, but no success. That's why I'm desperate
Uwe
2021-03-15 06:14
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Just a Idea.....

I not know the correct syntax.... But i get some experience in FSUIPC Offsets for FSX and P3D.

1. A AutoThrottle Switsch is a simple Bool System Prety sure.... So ON or OFF 1 or 0
It make no sense to use a Offset with 4 Byte ( UINT32) This is no issue reason but fully unless.

2. Offset 5310 is in a official "reserved" area in FSUIPC.... Not know how XPUIPC handle this.... But in theory the creators can build THERE for example some AddOn Stuff.
Why not simply use the official assigned Free Areas.... 66C0 e.g.


So before you start thinking about the code.... Confirm at first if the offset and the Mobiflight system work for it.
Create your Inpuzt in MF.... USe e.g. your 5310 Offset
Create in MF a OUTPUT Config also that read the same Offset with same Size and typ you use for the Input ( Or alternate use a logging tool within XPUIPC)

Target: Find out if moving the switch write the Offset to 1 or 0 whatever you need.
If this NOT work then we not need to think about your code in XPUIPC !

EDIT: And at last confirm the used Dataref is the correct one for the used AddOn Aircraft !
Good Luck !
2021-03-15 08:25
Avatar
Honey
Posts: 4
Supporter

I have tried many offset in MobiFlight the switch in the simulator unfortunately does not work
# XPUIPCOffsets.cfg - XPUIPC offset configuration file
#MCP A/T ARM toggle
Dataref ATARM 1-sim/AP/atSwitcher int
offset 0x66C0 unit8 1 rw $ ATARM> ATARM @ :blush:
Uwe
2021-03-15 09:24
Avatar
Honey
Posts: 4
Supporter
I tried it now with the Zibo

# 737zibo
# MCP A/T ARM toggle
Command 0x6520 UINT8 1 0 laminar/B738/autopilot/autothrottle_arm_toggle _
0 1 laminar/B738/autopilot/autothrottle_arm_toggle

# MCP ALT ENCODER
Command 0x6541 UINT8 1 1 laminar/B738/autopilot/altitude_up _
1 0 laminar/B738/autopilot/altitude_up
Command 0x6542 UINT8 1 1 laminar/B738/autopilot/altitude_dn _
1 0 laminar/B738/autopilot/altitude_dn
Nothing goes
If I exclude the simulator and look at the "xpuipc.txt" I find the following



PUIPC Version 2.0.4.8 64 bit
XPWideFS Version 2.0.0.2 64 bit
Start Init!
Init Mem Blocks OK!
Init DataRefMemBlock & VariablesAccessMemBlock OK!
Init Command Block OK!
X-Plane Version: 11520
--------------------------------------------------
19:02:03:192 XPUIPC Enable !
XPWideServer Enable !
XPUIPC->Reading XPUIPCOffsets.cfg
Command laminar/B738/autopilot/autothrottle_arm_toggle not found.
Command not found.
Command not found.
Command laminar/B738/autopilot/autothrottle_arm_toggle not found.
Command laminar/B738/autopilot/altitude_up not found.
Command not found.
Command not found.
Command laminar/B738/autopilot/altitude_up not found.
Command laminar/B738/autopilot/altitude_dn not found.
Command not found.
Command not found.
Command laminar/B738/autopilot/altitude_dn not found.
XPUIPC->Initialise critical sections
XPUIPC->UDP Broadcast server init OK
XPUIPC->XPUIPC2XPUIPC mode not active, init flightloops
XPUIPC->Init pushback functions
Joystick button assignments read!
XPUIPC->Create UIPC Thread OK!
XPUIPC->Create Joystick Thread OK!
XPWideFS->Receive Socket creation 00004B9C OK
XPWideFS->Bind OK
XPWideFS->Listen OK
XPWideFS->Socket Thread Init OK
19:03:27:617 Granting multicast to 192.168.178.20
Starting UIPCMain Thread!
XPWideFS->Create Socket thread OK!
XPUIPC->Create ATC thread OK!
19:03:27:617 XPWideFS->Waiting for clients.....0
Create UIPCMain Window OK!
Register UIPCMain Call message OK!
Register of joystickcapturewindow OK!
--------------------------------------------------
:mad: :thumbdown: :love:
Uwe
2021-03-16 20:20
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi again, Uwe.

Badly here in Forum the number of XPlane guys is low.
The real proffesional users not read this Forum, cause they simply build there Code in XPUIPC themself.... it work for them... so they need no further support and also not observe these topics here.

It seems to me you just copy-paste code parts from other guides and you not fully understand the syntax or WHAT these code basicly do and how Xplane internal work !
I now, not mean you should learn all the stuff from scratch and get a professional IT specialist..... But i mean you need to talk to these Pro´s directly !

So i recommend.... Join DISCORD.... On our Server there is a Xplane Sub Area. And there are a couple of Users who have really high experience with XPUIPC.
Pretty sure one of them like to guide you.... Make Voice/Share Screen to show you the basics.... OR simply they write you the needed files and give it to you.
Good Luck !
2021-03-17 06:41
Avatar
Banzai
From: France
Posts: 90


you need to reload your dataref and command always your start a new flight!
2021-03-26 16:59
Avatar
sisoffi
Posts: 91
iconBanzai:



you need to reload your dataref and command always your start a new flight!




Hi Banzai,
I've just started setting up dataref for zibo with mobiflight.
Same problem that at the start of xplane you have to reload dataref every time.

But is there a possibility that it will be seen automatically every time?
because this is not good and I thought it was my problem of xuipc.

thanks
Simone
2021-05-27 14:36
Avatar
Banzai
From: France
Posts: 90
Hi

no i don't know how to do that i only know that the dataref customs can only be loaded once the zibo plane is loaded.
it is true that if it were possible it would be good,
for me I am not the solution:confused:
2021-05-27 18:20
icon