Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem sending wind data via UDP protocol net_ctrls class

Featured Replies

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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.