Sign in to follow this  
Guest DocMoriarty

Managed SimConnect - Problem with Var Category

Recommended Posts

I'm using managed SimConnect with VB 8.When i try to retrieve variable "Category" which should be an enum value (0=airplaine,1=heli,2=AI aircraft) then i get 7498049 as result. Other values returned within the same structure are ok (values before and after my category field). I'm using INT32 as type for this value, tried a few other things with no success.Anyone having the same problem or can confirm?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

I tried it and looked at the network traffic. It turns out that the data is not the number 0, 1 or 2, but a small text string ("Airp" for Airplane, "Heli" for Helicopter).Hmmm, interesting, but not exactly what I expected ...

Share this post


Link to post
Share on other sites

Seen that way its perhaps also useful, just need to adjust the numbers in my enum definition a tiny tad. Right now using some heuristics to determine airplane or heli by engine type (heli's have their own turbine type).

Share this post


Link to post
Share on other sites

>I tried it and looked at the network traffic. It turns out>that the data is not the number 0, 1 or 2, but a small text>string ("Airp" for Airplane, "Heli" for Helicopter).>>Hmmm, interesting, but not exactly what I expected ...Maybe you could use the equivalent of FSUIPC offset 0609, i.e "ENGINE TYPE", which gives you 0 = piston (and some helos like the Robinson) 1 = jet 2 = sailplane, or anything with no engines 3 = helo turbine 4 = rocket (unsupported) 5 = turbopropRegardsPete

Share this post


Link to post
Share on other sites

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
Sign in to follow this