FireStats error : FireStats: Unknown commit strategy Flight Simulator - Coding Challenge - openAE Forum
Search openAE
User Login
Poll
What applications are you most interested in?
 
Poll
What Would You Like to See Most on OpenAE
 
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
TOPIC: Flight Simulator - Coding Challenge
#350
wailo
Admin
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Re:Flight Simulator - Coding Challenge 1 Year, 1 Month ago Karma: 5
The attitude indicator was the most difficult one, wont be surprised if there was an error.

I am glad that you choose to keep it simple, I will go through the code to educate myself about animating objects in MATLAB

What to to ask you if MATLAB allows keyboard control input without stopping the execution of program?

Thank you again Andrei, I really liked your work.
 
Logged Logged
  The administrator has disabled public write access.
#363
jakubnaira
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Using Matlab To Collect Data From A Flt yoke sys 1 Year ago Karma: 0
Dear All,


Compliment of the day.I'm from Australia.I would like to show my appreciation regarding to your website.You guys have done a wonderful job, well done.I have been looking for this kind of website for over a year. I'm doing my PhD program in aviation field. I need to develop a software for my project(cockpit display) in matlab, however I have no clue how to do it.With your tutorials is a good start. I would appreciate if the community would assist me with codes, using Matlab to collect data from A PRO Flight YokeSystem(Saitek) as part of my project.

Thanks

Yakubu Ibrahim-Australia
 
Logged Logged
  The administrator has disabled public write access.
#364
Andrei
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Re:Flight Simulator - Coding Challenge 1 Year ago Karma: 0
wailo wrote:

What to to ask you if MATLAB allows keyboard control input without stopping the execution of program?


I have no idea, but I think it is possible if you look into the high-level functions like S-functions or C language functions, which are not my strongest area.


using Matlab to collect data from A PRO Flight YokeSystem(Saitek)

That's possible in Simulink but I never used this kind of input into Matlab/Simulink. Anyway if you look into the Simulink library you should find there in the Aerospace blockset/Animation/Joystick input, in the 3D Animation blockset/Joystick input, blocks that can input signals from hardware connected to the computer or in the Instruments control blockset you can find same kind of blocks for serial port, UDP, TCP, USB but you need to specify the communication parameters manually.

For my PhD project I used an Analog Input block in Simulink and a National-Instruments Data Aquisition 6229 card connected to the USB of my laptop, which was quite easy to select the parameters. I suppose any hardware you connect to the USB port, Simulink will recognize if Mathworks developed already the communication software, that means for Saitek devices in your case.

Here is some info that you may find useful:
www.mathkb.com/Uwe/Forum.aspx/matlab/260...-joystick-and-pedals
 
Logged Logged
 
Last Edit: 2011/05/11 16:00 By Andrei.
  The administrator has disabled public write access.
#386
sncwhiz
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Using Matlab To Collect Data From A Flt yoke sys 9 Months, 3 Weeks ago Karma: 0
Also, outside of simulink you can define a joystick and read it within MATLAB. This can be done by the following:

%Define a joystick (Note the input parameter '1' is used to specify which joystick/device it is reading from if there are multiple:

joy = vrjoystick(1)

%Once defined, you can read from it:

[axes,buttons,povs] = read(joy);

Good luck. Let me know if you need anymore help. Also as a good starting point, for your project if you want to use an existing graphical flight simulator, both XPlane and Flight Gear are not to hard to implement via UDP transmission of your aircraft's orientation. It can also be done in Microsoft Flight Simulator, but I have not done it.
 
Logged Logged
  The administrator has disabled public write access.
#387
wailo
Admin
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Re:Using Matlab To Collect Data From A Flt yoke sys 9 Months, 3 Weeks ago Karma: 5
I can smell a geek here

welcome to the board snchwiz!
 
Logged Logged
  The administrator has disabled public write access.
#388
jakubnaira
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Using Matlab To Collect Data From A Flt yoke sys 9 Months, 3 Weeks ago Karma: 0
Thanks
 
Logged Logged
  The administrator has disabled public write access.
Go to top