FireStats error : FireStats: Unknown commit strategy Flight Simulator - Coding Challenge - openAE Forum
openAE Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Flight Simulator - Coding Challenge
(1 viewing) 1 Guest
Discussion of flight simulator packages...
Go to bottom
  • Page:
  • << Start < Prev 1 2 Next > End >>
TOPIC: Flight Simulator - Coding Challenge
#338
wailo
Admin
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Flight Simulator - Coding Challenge 10 Months, 2 Weeks ago Karma: 5
Coding Challenge

Do you have basic MATLAB knowledge? Are you up for coding challenge that will give you an exposure to the online aerospace community and enhance your profile? We are working on developing a basic instrument flight simulator and we would like you to get involved!

The modeling part of the simulator instruments is completed, next to be done: needed to be done to meet our objectives is:
1- Merging of the instruments.
2- Building mathematical model to simulate a selected aircraft performance,
3- Keyboard control.

If you check the following inks:

[ Modelling Flight Instrument | Altimeter]
[ Modelling Flight Instrument | Airspeed indicator]
[ Modelling Flight Instrument | Vertical speed indicator]
[ Modelling Flight Instrument | Heading indicator]
[ Modelling Flight Instrument | Attitude indicator 01]
[Modelling Flight Instrument | Attitude Indicator 02]
[Modelling Flight Instrument | Attitude Indicator 03]
[Modelling Flight Instrument | Turn coordinator]

You will find a description of the instrument along with a full MATLAB code that will plot the instrument on your screen. (you must be registered in the forum in order to be able to see the full code!) The current structure of the code is as follow



The first phase of this project is to start with the merging of the instruments into one single display frame and integrate the variables into one m file as global variables, so the structure of the code become as follow:


We build this simulator stone by stone which it will turn into a huge and very useful research tool at the end. Once we have a significant number of enthusiasts, we will take it forward to the next stage. Please register your interest by replying to this post!
Looking forward to hear from you all!
 
Logged Logged
 
Last Edit: 2011/04/08 15:00 By wailo.
  The administrator has disabled public write access.
#345
Andrei
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Re:Flight Simulator - Coding Challenge 10 Months, 2 Weeks ago Karma: 0
Done it. There were some errors in the Attitude Inidcator code so that I used the original code of Elodie Roux from her website.


Something is hidden for guests. Please log in or register to see it.
[file]
File Attachment:
File Name: Flight_Instruments.zip
File Size: 12616
 
Logged Logged
 
Last Edit: 2011/04/18 13:10 By wailo.
  The administrator has disabled public write access.
#346
wailo
Admin
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Re:Flight Simulator - Coding Challenge 10 Months, 2 Weeks ago Karma: 5
oOoOoOoOo

Super one Andrei we are already there! I have to go to work now, will play with it when I am back later.

Well done Andrei, love the GUI!
 
Logged Logged
  The administrator has disabled public write access.
#347
Andrei
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Re:Flight Simulator - Coding Challenge 10 Months, 1 Week ago Karma: 0
Just done some small improvements, changes in the design, incresed the text sizes to 12, widen the needles...



File Attachment:
File Name: Flight_Instruments-20110415.zip
File Size: 12711
 
Logged Logged
 
Last Edit: 2011/04/24 14:19 By wailo.
  The administrator has disabled public write access.
#348
wailo
Admin
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Re:Flight Simulator - Coding Challenge 10 Months, 1 Week ago Karma: 5
You know what Andrei, this is an extremely useful piece of work, really like the look of it and appreciate the effort you put in, all instruments work fine, I always failed to implement animations in MATLAB! well done!

I just would like to ask where did the data come from and for what aircraft? also you said there was an error in my attitude indicator, I would like to know where, please.

we will add to the resource section and will keep it open for improvement, again, well done!
 
Logged Logged
  The administrator has disabled public write access.
#349
Andrei
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Re:Flight Simulator - Coding Challenge 10 Months, 1 Week ago Karma: 0
The data comes from the project I work currently,it is flight test data for a L-1011 aircraft Simulink model.

I don't know exactly what was the error in the attitude indicator, but I suppose came in translation from french to english. The earth pitch and roll rotation was faulty, the other objects were ok like green arrow. So I took the original code as it was and implemented in my function. I change a liitle bit the scaling of the pitch gradation to correspond the earth pitch movement. Of course it can be improved and developped from this and taken to another level, but it is a good begining. I really liked your idea and support it wholeheartedly.

For animation in Matlab the strategy is simple, just follow these two rules: use low level functions like line , patch and text, create as little objects as possible and change the properties using set function. For instance I used set(objectName,'xdata', XnewData,'ydata',YnewData) and so on, you can change positions, colors, thickness, sizes, whatever properties you want. At firs I was tempted to use the aerospace animation built in functions but seemed too complicated and I said "keep it simple".
 
Logged Logged
  The administrator has disabled public write access.
Go to top
  • Page:
  • << Start < Prev 1 2 Next > End >>