kaha Posted January 7 Author Report Posted January 7 Unfortunately this doesn't work out. It depends if the ATC Type in the aircraft.cfg file has been set correctly. Just 3 examples: AH's Cessna 170: "C170BT" Miltech's Chinook: "$$:Helicopter" Microsoft's Bell 47J: "Bell"
John Dowson Posted January 7 Report Posted January 7 Then you need to look into the SDK to see if this information is available anywhere. The aircraft type, as known by applications via the simconnect interface/API, is determined by the SIMCONNECT_SIMOBJECT_TYPE stricture when received, which has the following values: Quote SIMCONNECT_SIMOBJECT_TYPE_USER Specifies the user's aircraft. SIMCONNECT_SIMOBJECT_TYPE_ALL Specifies all AI controlled objects. SIMCONNECT_SIMOBJECT_TYPE_AIRCRAFT Specifies all aircraft. SIMCONNECT_SIMOBJECT_TYPE_HELICOPTER Specifies all helicopters. SIMCONNECT_SIMOBJECT_TYPE_BOAT Specifies all AI controlled boats. SIMCONNECT_SIMOBJECT_TYPE_GROUND Specifies all AI controlled ground vehicles. So for all other aircraft/objects (e.g. AI traffic) the type is known, but for the aircraft/object you are flying/controlling it is always SIMCONNECT_SIMOBJECT_TYPE_USER, and it is expected that the the user knows its type. This is obviously not optimal for third party software that need to determine the type, but I do not know how to determine the type by other means. I will take a look at the SDK in the next few days to see if this information is available via other means and let you know, otherwise I can raise a bug/request to see if this can be added. John
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