Jump to content
  • 0

Problem sending wind data via UDP protocol net_ctrls class


Question

Guest Monster695
Posted

I'm trying to send controls to FG (v0.910) using net_ctrls class, via UDP socket connection. I have a big problem for what concern the wind data ( CTRLS->wind_speed_kt, CTRLS->wind_dir_deg, and CTRLS->turbulence_norm in class definition). I set the command line parameter "--disable-real-weather-fetch" to disable real weather data and I'm trying to send wind data via UDP packet. I saw that there's a problem in the communication: FG doesn't listen only at my UDP packet, but sometimes (every not specified sample data) it gets as input the wind value from its wheather layers! So, what happen is that if the winds values from my UDP packet and that one from wheather layer are different I have during the simulation pulses in the wind data (of amplitutude equal to that difference) which cause discontinuos peaks in the FDM data (expecially for what about airspeed and accellerations).Right now, of course I found that the unique to avoid these pulses are to set the same zero wind value in my wind UDP packet and in the FG weather layer.I tried to change FDM and CTRLS UDP socket communication frequency, as well the FG model frequency, but the problem persist.Does anybody knows how to solve this problem? Is there a way to force FG to listen only at the socket??!Thank you very much for your help.Mauro

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...