MM007 Posted December 17, 2019 Report Share Posted December 17, 2019 (edited) 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 December 18, 2019 by MM007 Link to comment Share on other sites More sharing options...
Thomas Richter Posted December 17, 2019 Report Share Posted December 17, 2019 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 Link to comment Share on other sites More sharing options...
MM007 Posted December 18, 2019 Author Report Share Posted December 18, 2019 (edited) 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 December 18, 2019 by MM007 Link to comment Share on other sites More sharing options...
Thomas Richter Posted December 19, 2019 Report Share Posted December 19, 2019 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 Link to comment Share on other sites More sharing options...
MM007 Posted December 19, 2019 Author Report Share Posted December 19, 2019 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? Link to comment Share on other sites More sharing options...
John Dowson Posted December 19, 2019 Report Share Posted December 19, 2019 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 Link to comment Share on other sites More sharing options...
MM007 Posted December 26, 2019 Author Report Share Posted December 26, 2019 Is there any video or any good step bu step example how to connect arduino via ethernet to fsuipc? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now