PDA

View Full Version : Heading read offset



Alb Calderon
09-16-2014, 02:05 AM
hi!!

im having issues for reading heading like that:

Heading=ipc.readUW(0x73c3)
Heading=Heading+1
ipc.writeUB(0x73CC,2)
ipc.writeUW(0x73CD,Heading)

Im using a rotary encoder but when i read the vuale of heading the refresh rate on fcu interface of jeehell it slows down. any ideas?? thanks

jeehell
09-17-2014, 11:03 AM
Hi,

FSUIPC offsets are not very efficient for the encoders, as there is a big delay in the FSUIPC interface (up to 75/100ms), which IS noticeable. I left FSUIPC offsets only because it is the legacy interface for FS hardware, and it has been the best addon ever invented. But now, it is a bit outdated (considering the simconnect interface).

What hardware do you use? Can't you interface using IOCP?

JL

Alb Calderon
09-17-2014, 06:13 PM
hi JL!

Thanks for answer i'm using arduino cards to send instructions to lua script.

I found the way to connect arduino card to IOCP server with a python script I can see in the localhost:8080 of IOCP, the arduino as This server have 1 clients conected with 1 offsets.


Client n 1




but now how can i made variables from offset or i have to interrogate IOCP directly with offset?? thanks

jeehell
09-18-2014, 05:54 AM
Hi,

During installation of my software, you have the choice to install "SIOC support" option. Select that, and in the folder "harware module" you'll get an application called SIOC Creator. You can use it to create a SIOC script with all I/O necessary.
Have SIOC.exe run this script, and your python script connect to the SIOC IOCP server.

You'll then have to retrieve the outputs variables to drive your LEDs/displays, and send your inputs to the SIOC server so my software can read them.

Regards,
JL

Alb Calderon
09-18-2014, 10:52 PM
thanks for your help!!

excuseme where can i found the manual for SIOC_Creator thanks!