Jump to content
The simFlight Network Forums
MM007

ARDUINO + FSUIPC + PROSIM737

Recommended Posts

Hi, 

 

Im new in the topic.

Tyring to connect arduino uno with prosim737.

I followed:

https://mickeys-flightdeck.de/2019/04/07/connecting-an-arduino-to-prosim737/

(interfacing arduino with prosim737 via SIOC/IOCP server)

 

If you go to prosim737 / config / configuration / combined config

and assign any event from the list to a specific variable (e.g MCP/HDG assigned to IOCP variable no.1 - you have to type 1 next to HDG)

then you can easily read this variable using arduino.

It works.

But now Id like to read different variables/events which are not listed there. 

How can I do this?

The aim is to read e.g. ailerons position via arduino connected via ethernet.

Thx for any help/suggestions.

 

 

 

 

 

Edited by MM007

Share this post


Link to post
Share on other sites

Hi,

I think you are here in the wrong place as this is the support forum for FSUIPC but not for Ardunio, ProSim or IOCP. It might be that some other user is able to help but you might be better off at IOCP forum.

Thomas

Share this post


Link to post
Share on other sites

Is it possible to get some P3D parameters directly to arduino using fsuipc? (using ethernet connection)

 

or how can I build a widefs client on arduino (ethernet) to read some events/varibles from fsuipc?

Edited by MM007

Share this post


Link to post
Share on other sites

Hi,

to do so you can write a script in Lua that then runs within FSUIPC or WideClient. Check the manual for that and have a look at the Lua examples that come with with FSUIPC installation.

Thomas

Share this post


Link to post
Share on other sites

I need to read about 20 parameters. Few of theme quite often - lets say 10/sec (aileron position). Will this method (fsuipc+lua) be fast enough?

 

Share this post


Link to post
Share on other sites

Depends how you read them, but 10/sec sounds reasonable. If you use event.offset, your provided function will be called each time the offset value changes. Or you could use event.timer  to poll at any interval you specify. For lvars, you can use the event.lvar function, which has a minimum monitor time of 100ms.

John

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.