Whether aircraft information can be obtained and sent out in a 10ms cycle??
Posted: Mon Jun 03, 2019 7:41 am
Hello everyone,
We are trying to control another aircraft in real time (a 10 ms cycle) to enable it to fly in formation with the aircraft. And the following is the step we used:
a> get informatioin from our own plane . SimConnect_RequestDataOnSimObjectType
b> create an AI aircraft . SimConnect_AICreateObjectWithExternalSim or SimConnect_AICreateNonATCAircraft
c> set the data we get from step a to the AI aircraft . SetDataOnSimObject
But the aircraft we created kept shaking in the view relative to our own plane . So we found that the time to get data from Prepar3D is not stable.
Is there anyway for us to get data for Prepar3D in a stable time? Or are there other ways to stabilize the airplane in the view??
And if I go one step further, how about create an AI aircraft on another computer's Prepar3D??
We are trying to control another aircraft in real time (a 10 ms cycle) to enable it to fly in formation with the aircraft. And the following is the step we used:
a> get informatioin from our own plane . SimConnect_RequestDataOnSimObjectType
b> create an AI aircraft . SimConnect_AICreateObjectWithExternalSim or SimConnect_AICreateNonATCAircraft
c> set the data we get from step a to the AI aircraft . SetDataOnSimObject
But the aircraft we created kept shaking in the view relative to our own plane . So we found that the time to get data from Prepar3D is not stable.
Is there anyway for us to get data for Prepar3D in a stable time? Or are there other ways to stabilize the airplane in the view??
And if I go one step further, how about create an AI aircraft on another computer's Prepar3D??