X-plane SDK 3 Tutorial - First Interactive Project [Part 4]

Опубликовано: 02 Октябрь 2024
на канале: Alireza Ghaderi
1,760
28

********************************************************
********************************************************
********************************************************
EDIT:
I found my mistake in this tutorial:
Elevator dataref actucally is a float array. so the syntax should change sth like this:
XPLMGetDatavf(elevAngleRef, elevAngle, 0, 1);

********************************************************


What We Will Discuss:
In this Video I guide you through a real Example by using Matlab curve fitting tools and what we have learned so far in SDK Development.
We used ٍElevator link and stick forces Vs speed and Elevator deflection in a Flight test data gathered from real flight and fit a surface and find the estimated governing equation. then we create custom Dataref and register our calculated value.

In this video we will write the code during the video so it helps you learn as you go and challenge yourself. I also did some silly mistakes so Sorrry :D.
If you know the concepts and dont want to spend one Hour watching all the code typing, go ahead and download the final project solution.


Quick review of Aerospace Engineering Concept Behind the scene
Import Real Flight Test Data to Matlab
Finding the Governing Equation for Elevator Stick force
Output the value in Xplane using Custom Dataref Method.
-----------------------------------------------------------------------------------
Visual Studio 2019 Project File
https://drive.google.com/file/d/1EoIa...
-----------------------------------------------------------------------------------------


Please like and subscribe and let me know if you have any question

Next video Series will be about communicating with xplane though Matlab, Simulink, Arduino,...