• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

SimConnect_ClearDataDefinition (beatles)

Messages
8
Country
unitedkingdom
Can anyone point me in the right direction for -

hr = SimConnect_ClearDataDefinition(hSimConnect, DEFINITION_WAYPOINT);

in beatles beta 3 sdk?

thanks

ewan
 
My library doesn't have AddToDataDefinition or ClearDataDefinition as public API functions. It uses custom attributes on data structure (class) fields/properties to define the SimConnect mapping of those items and automatically does the data definition the first time a class is used in a SetDataXXX or RequestDataXXX API call.

What are you doing that you need to do a ClearDataDefinition (I never quite understood what that would be used for :-> )?
 
Hi Tim, hope you are well.

I use if in c++ for clearing a waypoint that has been sent to an ai craft, then allows me to send another set or waypoint.

It basically culls the current waypoint that the ai is using.

I use it for sending/killing dynamic waypoints in c++

Ewan
 
I don't see how it would do that, all the ClearDataDefinition call does is remove a client defined data structure definition from a table maintained on the SimConnect server side, it wouldn't have any effect on the actual data that was previously sent with that structure.
 
it might be the way that i am sending the waypoints.
Let me clarify if i can.

Im sending waypoints from another application. My app listens for the waypoints, then looks after the simconnect side of things.

When i was testing, (i use one structure, with filled variables from the data sent from the client app for simconnect)

I would send the waypoint structure, and the craft would follow the first set of waypoints. If i send another set of waypoints, the craft would do nothing, it would stay on course from the last set of waypoints.

However when i used this call before setting the new set of waypoints, the craft would indeed follow its new set of waypoints.

I don't really know why, but at least on c++ with the SDK this worked for me.
Otherwise the craft would only take the first action.

You are alot better placed to tell me how this should work!

Out of interest, what would your approach be to setting a waypoint(s) on a craft, and then cancelling that request, followed by a new set of waypoints?

Id really like to get this working, as i would like to use this on a 64bit machine, and your managed client looks to be the best way forward.

It would be really usefull, as it would allow a taxi command to be aborted, or changed for craft on the ground, as well as letting me handle my own ai logic.

Thanks for your time
Ewan
 
Back
Top