-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hallo Thiago,
although mI haven't hacked FGFS for ages and never used it togeth with Matlab I hope I can help: When you are using a Matlab flight dynamics model FGFS runs completely independently of it - it get's the relevant data over an network connection (you could run the FDM on a PC in Europe and FGFS for the visuals in the USA if there'd be a need for it...) If your aim is to avoid that users of your FDM need a expensive Matlab licence you could run your Model through the Real Time Workshop (which needs an expensive license...) and compile your model into an executable. This executable will run on only one platform (unless you are generation executables for all relevant platforms like Linux, Windows or MacOS), doesn't need a Matlab licence and still use the network interface of FGFS. If you want to integrate the code of your model directly into FGFS you could use the C code that the Real Time Workshop is generating and add the relevant interfaces manually so that it becomes the fourth FDM (together with JSBSim, YASim and UIUC). This would be the best way for performance and allows others to modify the source - but there's no way back from the C code to the Matlab code. The C code also isn't the most readable one (but you can get used to it...) and, which might be a bigger draw back, you might still need libraries that are shipped together with Matlab and which aren't allowed to be redistributed. I'd prefer a different way though: leave Matlab alone and code directly in C or C++, but that wouldn't answer the question though... CU, Christian Thiago Holanda schrieb: > Hello, > > I am working with UAV. I have made a dynamic model of a small-helicopter > (Raptor 50) in the MatLab. I am using the Flightgear to see the > animations from model by network. I made the model using the simulink of > the MatLab and I set up it to send the flight parameters by UDP/IP. I > set up the Flightgear to receive the parameters by > <flight-model>network</flight-model>. I got one 3D model of the > small-helicopter and it is work very well. > > But I want more portability. I know there are 3 ways to insert a new > model: JSBSim, *YASim* and UIUC. But I want to use the model that I made > in MatLab inside the Flightgear without playing MatLab. It sounds like I > put the MatLab model in the internet for anyone download and put it only > in the aircraft dir in the Flightgear without MatLab. > > I know there is one way to code all model from MatLab to C/C++. Does it > help anything? > > If I didn't explain clearly please ask me. > > Regards, > > Thiago Holanda. > -- > "Antes de magoar um coração, veja se não está dentro dele. Pois se um > dia chorei, não foi porque perdi e sim porque amei." > Que a paz esteja contigo. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEAREIAAYFAkkSKH8ACgkQoWM1JLkHou28vgCdHdxhM4VrytE4YvulRBeHGZUY Wy4AoIFNyI3z75vstcC+VGxJIQtMTFV7 =/fDd -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel