• 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.

Prepare3D can read a file?

Messages
1
Country
netherlands
hello developers!

I have been working with simconnect and prepare3d to create a application using visual c++. This application is mainly to perfom certain tests on simulators. As of now, I can use the application to choose a specific test file, and launch prepare3d to perform the test as required. After the test is completed, the application also creates a file where all data regarding the test is saved in .txt format. (eg: aileron movement, throttle movemet etc).

Now, my next aim is to completely automate the testing. So now I plan to use the data file created previously to do the automatic testing. My question is: Can I use prepare3D to read the file and execute the flight according to the data in the file? I thought that the function "SimConnect_FlightPlanLoad" can be used for this purpose. However, that does not work. Is there a different way that I can read the data to recreate the flight?

Cheers!
 
All that does is get a FS format flight plan to load into simulator, this is used in default GPS navigation and for default ATC.

To recreate a flight, I'd say you could do several things, I suppose the most simple would be to feed the simulator with virtual joystick inputs as needed, and/or operate autopilot as needed.

i.e. record raw data from controls as flown manually, feed sim the same data via a fake joystick driver. Or, create a takeoff sequence in this way, at a valid point, connect the autopilot programmatically and send signals to it as flight progresses.
 
Back
Top