Jump to content
The simFlight Network Forums

ruudfaessen

new Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Netherlands

ruudfaessen's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Paul, altrough you have solved my problem for this, I have a more off-topic question regarding the WeatherServices, it doesn't work, I get back the error: FSUIPC Error #11: FSUIPC_ERR_TIMEOUT. Weather station xxxx is currently unavailable or is invalid. Where xxx is a valid airport where my aircraft was parked at that moment. I've tried it in two ways: FSUIPC.FSUIPCConnection.Process(); WeatherServices ws = FSUIPCConnection.WeatherServices; string weather1 = ws.GetMetarAtLocation("LSZH"); FsWeather weather = ws.GetWeatherAtLocation(Convert.ToDouble(airport.Latitude_deg), Convert.ToDouble(airport.Longitude_deg)); foreach (FsWindLayer wl in weather.WindLayers) { double direction = wl.Direction; double speed = wl.SpeedKnots; }
  2. Why you have a FSUIPCConnection.Process() there? What I should add is that, while that is working on the background, a timer, with interval 200, is also running at the same time. (processing data back and fort to/from fsx) In the meantime I already got it fixed. by I re-creating the Quadrilateral class a bit and got away with it. I think, somehow, the FsLatLonPoint still wants to be processed or something, it is probably waiting in queue it looks like, I don't know,, after doing this I've got my results within a milliseconds. Oh and btw, why do you do +90.0 and +180.0 on the lat/lon Degrees inside ContainsPoint() Method? Thanks for your time though, well done on that DLL, very useful.
  3. Hi, I'm currently developing an application with Pete Dowson's DLL. I just upgraded to Client 3.0 beta, which works for now as expected. sidenote - I upgraded because I needed the WeatherServices, however I'm getting errors on that: 'METAR for xxxx is not available now'. - But that is not the issue for this topic :) My issue is, that I'm trying to make use of the FsLatLonQuadrilateral interface, and just like the UserGuide.pdf, I am creating 4 FsLatLonPoints, but there is the issue: I'm doing this on another thread (backgroundworker c#) and it takes about 30 seconds (25 seconds to be exact) to create them, after which the backgroundworker kind of crashes, without error, just exitcode 259. I believe this is because it is trying to access the main thread or something to process the FsLatLonPoints? Like it is really 'creating' points in fsx? In the main thread they just work fine. The reason I use it on a background worker is because it does some processes which require information from an database and work with that data... Basically I have a list of points and I want to check if they are within a distance of the airplane. Suggestions? Can I find the source code on this somewhere?
×
×
  • 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.