Board index FlightGear Support Interfacing

Position and Attitude Dataset to Animation

Connecting two computers, using generic protocol, connecting with Matlab?

Position and Attitude Dataset to Animation

Postby engineer_one_day » Mon May 11, 2020 2:38 am

So I have written a physics engine for a project in Matlab. This physics engine outputs a coordinate list x,y,z as well as roll, pitch, and yaw. I am new to FlightGear and I was wondering if anyone had any ideas on how to import these coordinate lists into FlightGear to get an animation of the flight?
engineer_one_day
 
Posts: 2
Joined: Mon May 11, 2020 2:35 am

Re: Position and Attitude Dataset to Animation

Postby Gijs » Mon May 11, 2020 7:25 am

Hi and welcome,

Is it a static pre-generated list or do you want to be able to run the physics engine live while connected to FlightGear?

Do you happen to have the Aerospace Blockset from Simulink? That'd make it somewhat easier as it has some specifically designed blocks to communicate with FlightGear. Therefore I'd like to know that before we dive into other options ;-)

Gijs
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9429
Joined: Tue Jul 03, 2007 2:55 pm
Location: Amsterdam/Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Position and Attitude Dataset to Animation

Postby engineer_one_day » Thu May 28, 2020 3:23 am

I already have a dataset that I have generated that describes the position and orientation of the craft. I have generated this list through Matlab and not Simulink. However, I do have the Aerospace Blockset from Simulink.
engineer_one_day
 
Posts: 2
Joined: Mon May 11, 2020 2:35 am


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest