You can subscribe to this list here.
2009 |
Jan
|
Feb
(6) |
Mar
(16) |
Apr
(8) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
(1) |
May
(1) |
Jun
(8) |
Jul
(3) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
(1) |
2011 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
(1) |
Dec
|
2012 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(2) |
Mar
(13) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: by l. <liu...@gm...> - 2010-10-21 23:55:53
|
Hi: When I run jsbsim_matlab , the following error appears : [code] Warning: Could not find an exact (case-sensitive) match for 'JSBSimGUI_sim'. /home/postgres/cprog/jsbsim_matlab/JSBSim_MATLAB_release/jsbsimgui_sim.m is a case-insensitive match and will be used instead. You can improve the performance of your code by using exact name matches and we therefore recommend that you update your usage accordingly. Alternatively, you can disable this warning using warning('off','MATLAB:dispatcher:InexactCaseMatch'). This warning will become an error in future releases. > In JSBSimGUI_Start at 4 ??? Error using ==> load Unable to read file jsbsimgui_sim.fig: No such file or directory. [/code] my version of matlab is 2009a, just rename the relative file would do, but I think it should be taken into consideration in future release. Thanks for the GREAT program :) liubenyuan |
From: Michael.McCarthy <Mic...@ul...> - 2010-10-20 07:23:03
|
Thanks Jon Sorry for lack of contact from me. Our masters was put off a year, and I am back in full swing in the semester, so it'll probably be late spring/early summer before I look at JSBSim again. Regards Michael _____________________________________________ From: Jon S. Berndt [mailto:jon...@co...] Sent: 19 October 2010 11:46 To: jsb...@li... Subject: Re: [Jsbsim-matlab] S-function and Mex function I've added some text and images supplied by Brian Mills to the JSBSim matlab page: http://jsbsim.sourceforge.net/matlab.html Jon << File: ATT25850114.txt >> << File: ATT25850116.txt >> |
From: Jon S. B. <jon...@co...> - 2010-10-19 10:46:07
|
I've added some text and images supplied by Brian Mills to the JSBSim matlab page: http://jsbsim.sourceforge.net/matlab.html Jon |
From: b m. <bri...@in...> - 2010-07-25 11:28:05
|
The project has come a long way I think since the last release...it should be ready for upload soon I hope. Among other changes are some important bug fixes, new aerodynamic outputs, a new "user manual" document and a major upgrade to the GUI. Far greater control over the trimming process has been implemented in the GUI, which now features multiple panes. Another new feature is the ability to select from within the GUI each one of the 4 solvers used by JSBSim. I believe Agostino has a few things he has been working on, but I will let him comment on those ;-). Cheers, Brian ----- Original Message ----- From: "Jon S. Berndt" <jon...@co...> Date: Saturday, July 24, 2010 23:17 Subject: [Jsbsim-matlab] S-function and Mex function To: jsb...@li... > Hi, > > How are the latest S- and MEX- functions coming along? Is there > any news on > these? > > Jon > > |
From: Jon S. B. <jon...@co...> - 2010-07-24 14:17:08
|
Hi, How are the latest S- and MEX- functions coming along? Is there any news on these? Jon |
From: Hamilton, P. <pha...@or...> - 2010-07-13 12:06:15
|
From: Michael.McCarthy <Mic...@ul...> - 2010-06-22 11:54:13
|
Hi Agostino Thank you VERY much for the detailed reply. I will be looking into this in more detail in the coming weeks and no doubt will have some questions. I will start with your website below. Thanks again Regards Michael ________________________________ From: Agostino De Marco [mailto:ago...@un...] Sent: Tue 22/06/2010 11:39 To: jsb...@li... Subject: Re: [Jsbsim-matlab] S-function Hi Michael, just some more words about the idea of having JSBSim available in Matlab. I started thinking about this when I realized that Matlab became a standard tool for aerospace engineers and students. As a teacher, my purpose is to show my students the three possibilities: a) Using FlightGear with the JSBSim as the default FDM (This is the easiest way of playing around with simulations; you need a joystick and a good graphic card). b) Using JSBSim as a standalone application for making scripted simulations (This requires users to have a basic/medium knowledge of some essential system tools, such as a command shell--DOS, bash, etc--, command line tools, an editor, a plotting utility). c) Using JSBSim from within the Matlab environment and take advantage of all the built-in functions and additional library blocksets. I focused on this last point. My very first idea was this: What if we could have a MEX-function that could enable us to access JSBSim capabilities from the Matlab command window? As you may know, MEX-functions (or "MEX-files") can be run from within Matlab in the same way as Matlab M-files or built-in functions. So I implemented my own MEX-function in C++ and named it 'MexJSBSim'. I took all JSBSim source files (except JSBSim.cpp) and compiled them as a static library (JSBSim.lib). Then I developed a C++ class named JSBSimInterface that makes the job of making most of JSBSim internal objects accessible by Matlab. More technically: I conceived this interface with the purpose of establishing a sort of standardized way of using a JSBSim::FGFDMExec object from the Matlab command line. The first version of MexJSBSim provided some experimental functionalities to transfer data between a JSBSim instance and Matlab. This was going to be the first attempt to provide control engineers a direct access to a well established, high fidelity, flight dynamics model like JSBSim, enabling them to concentrate their work on automatic control logic and autopilot design. A very basic example of usage is this: >> MexJSBSim('open','c172r'); The above command starts out JSBSim from the Matlab prompt and loads the c172r aircraft model. You may find more details on MexJSBSim here: http://www.dias.unina.it/demarco/Work/JSBSim_Matlab/ Evolving from the MexJSBSim code, Brian Mills developed a JSBSim S-function. Matlab S-functions provide a powerful mechanism for extending the capabilities of the Simulink environment, which is the tool of choice for control engineers. An S-function is a computer language description of a Simulink block written in Matlab, C, C++, Ada, or Fortran. C, C++, Ada, and Fortran. S-functions are compiled as MEX-files. As with other MEX-files, S-functions are dynamically linked subroutines that the Matlab interpreter can automatically load and execute. S-functions use a special calling syntax called the S-function API, that enables users to interact with the Simulink engine. This interaction is very similar to the interaction that takes place between the Matlab engine and built-in Simulink blocks. In practice, the JSBSim S-function is a custom made Simulink block and is usable as other built-in blocks. MexJSBSim, and the S-function developed by Brian represent two effective examples of integration of a complex C++ code with the Matlab application. These allow the JSBSim users that have access to Matlab to bring all the advantages offered by JSBSim into that sophisticated and powerful computing environment. Please do not hesitate to give us your feedback. Suggestions are welcome in order to make this little toy useful for aerospace students and engineers. Regards, Agostino ------------------------------------------------------- Agostino De Marco, PhD Assistant Professor Università degli Studi di Napoli Federico II / University of Naples Federico II / Dipartimento di Ingegneria Aerospaziale / Department of Aerospace Engineering / http://jsbsim.sourceforge.net/about.html http://www.dias.unina.it/demarco http://www.dias.unina.it/adag ------------------------------------------------------- Quoting "Michael.McCarthy" <Mic...@ul...>: > Hi Brian > > Many thanks for the detailed response. That is indeed a powerful > facility. I did not realise the entire JSBSim program was available > in the S-Function. As you say that opens up using all the different > JSBSim aircraft within matlab, which is very exciting. > > I will be working on getting familiar with all this over the coming > weeks, so no doubt will have some follow up questions and feedback. > > Thanks for this great initiative. > > Regards > Michael > > ________________________________ > > From: b mills [mailto:bri...@in...] > Sent: Sun 20/06/2010 06:10 > To: jsb...@li... > Subject: Re: [Jsbsim-matlab] S-function > > > > > Hello Michael! > > Your question is not dumb at all, and in fact it is very reasonable > that JSBSim and Simulink could be a bit overwhelming to a new > user...or a seasoned user as well. > > Let me first say that I'm excited that my project may find its way > into a college classroom, as that was one of the intended uses ;). > That said, I know that my current documentation for the project > leaves much to be desired. I'm working on something of a white > paper/user doc currently, but it will be a few more weeks before > anything is ready for release. > > OK, let me attempt to put all this together so that it makes sense > and you can get started.... > > JSBSim is the default non-linear flight dynamic model used in the > FlightGear flight simulator project. The JSBSim S Function takes the > JSBSim code and compiles it into a matlab compatible executable > file that is called a MEX file. An S Function is a user-defined > Simulink function that can be written in M, ADA, C etc, and can be > in the form of a MEX file. What is nice about a MEX S Function is > that it can be a rather complex external program (like JSBSim), but > is treated as a simple Simulink block. Now, all the power of JSBSim > flight modeling software is available in any Simulink model. > > > > > With the JSBSim Sfunction, any JSBSim compatible aircraft FDM/engine > file that is located in the JSBSimData/aircraft or .../engine > folder can be run in any Simulink simulation. This is quite > powerful as there are many decent FDMs already available to start > out with. The S Function can then be used for many different > teaching scenarios such as: > > * > > > * > how to trim an aircraft using the built-in trim utility > * > linearizing non-linear models and analyzing the decoupled > state-space matrices > * > flight model validation and construction > * > control system and autopilot system design with the JSBSim S > Function acting as the plant > * > using an events driven tool like StateFlow to script a flight > > > The flight scripting that you mention is something that I would be > interested in working with you on as it is a capability that I have > not really explored as of yet, but would like to implement better in > the future. > > To get started using the S Function, simply type "jsbsimgui_start" > at the Matlab command line- this will launch the JSBSim GUI > application. The JSBSim GUI is just a convenient way to initialize > all of the Sfunction parameters such as the Simulink model (use the > default choice), the delta time, the JSBSim multiplier (allows you > run simulations much faster), the trim utility, and all of the > aircraft control inputs and states. > > Please read the README text file and use the Help button on the GUI > for further explanation. Also please keep in mind that this is still > a developing project with much further development work needed so > there may be some bugs :). Also, I will attach my incomplete paper > that I am working on (it is a rough draft so please bear with me...) > which will explain things in more detail, like the trim script and > the different MEX files used. > > So to sum it up, the JSBSim S Function would be a great tool to > teach your students as it brings a well-established non-linear > flight dynamic modeling engine directly into Simulink as a single > block. Any control system can be built around it and all the > states, propulsion parameters, control parameters, state derivatives > etc are made available as outputs from the S Function block. Any > JSBSim compatible flight model file available can be run and > analyzed in a way not previously available. > > Best of luck and please keep in touch with me as I am interested in > getting feedback from users on how the project is being used. Also > keep an eye out for updates as some may be coming soon. > > Best Regards, > > Brian Mills > > > > ----- Original Message ----- > From: "Michael.McCarthy" <Mic...@ul...> > Date: Thursday, June 17, 2010 19:14 > Subject: [Jsbsim-matlab] S-function > To: jsb...@li... > >> Hi Brian >> >> This is going to sound like a really dumb question, but I was >> just wondering if you could post something that explains in a >> nutshell what the S-function does and how it can be used. I have >> downloaded it and played with it a little but am still not too sure. >> >> To put my question in context, I am new to JSBSim, and pretty >> new to Simulink too. I've obtained the matlab aerospace toolbox >> and blockset, and am trying to make sense of it all. My main >> motivation is obtaining tools that will help me in teaching >> Stability and Control of Aircraft in an exciting way. The >> aerospace blockset looks too complex for that. >> >> Currently my thinking is to use Datcom, Matlab, JSBSim and >> (possibly) Flightgear. Our students generally aren't able to fly >> aircraft in Flightgear so I am thinking more in terms of >> scripted flights, for which we can then apply different control >> system approaches. >> >> If you could advise on how your S-function could assist with >> that it would be great. >> >> Many thanks >> Michael >> >> >> > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Jsbsim-matlab mailing list Jsb...@li... https://lists.sourceforge.net/lists/listinfo/jsbsim-matlab |
From: Agostino De M. <ago...@un...> - 2010-06-22 10:39:56
|
Hi Michael, just some more words about the idea of having JSBSim available in Matlab. I started thinking about this when I realized that Matlab became a standard tool for aerospace engineers and students. As a teacher, my purpose is to show my students the three possibilities: a) Using FlightGear with the JSBSim as the default FDM (This is the easiest way of playing around with simulations; you need a joystick and a good graphic card). b) Using JSBSim as a standalone application for making scripted simulations (This requires users to have a basic/medium knowledge of some essential system tools, such as a command shell--DOS, bash, etc--, command line tools, an editor, a plotting utility). c) Using JSBSim from within the Matlab environment and take advantage of all the built-in functions and additional library blocksets. I focused on this last point. My very first idea was this: What if we could have a MEX-function that could enable us to access JSBSim capabilities from the Matlab command window? As you may know, MEX-functions (or "MEX-files") can be run from within Matlab in the same way as Matlab M-files or built-in functions. So I implemented my own MEX-function in C++ and named it 'MexJSBSim'. I took all JSBSim source files (except JSBSim.cpp) and compiled them as a static library (JSBSim.lib). Then I developed a C++ class named JSBSimInterface that makes the job of making most of JSBSim internal objects accessible by Matlab. More technically: I conceived this interface with the purpose of establishing a sort of standardized way of using a JSBSim::FGFDMExec object from the Matlab command line. The first version of MexJSBSim provided some experimental functionalities to transfer data between a JSBSim instance and Matlab. This was going to be the first attempt to provide control engineers a direct access to a well established, high fidelity, flight dynamics model like JSBSim, enabling them to concentrate their work on automatic control logic and autopilot design. A very basic example of usage is this: >> MexJSBSim('open','c172r'); The above command starts out JSBSim from the Matlab prompt and loads the c172r aircraft model. You may find more details on MexJSBSim here: http://www.dias.unina.it/demarco/Work/JSBSim_Matlab/ Evolving from the MexJSBSim code, Brian Mills developed a JSBSim S-function. Matlab S-functions provide a powerful mechanism for extending the capabilities of the Simulink environment, which is the tool of choice for control engineers. An S-function is a computer language description of a Simulink block written in Matlab, C, C++, Ada, or Fortran. C, C++, Ada, and Fortran. S-functions are compiled as MEX-files. As with other MEX-files, S-functions are dynamically linked subroutines that the Matlab interpreter can automatically load and execute. S-functions use a special calling syntax called the S-function API, that enables users to interact with the Simulink engine. This interaction is very similar to the interaction that takes place between the Matlab engine and built-in Simulink blocks. In practice, the JSBSim S-function is a custom made Simulink block and is usable as other built-in blocks. MexJSBSim, and the S-function developed by Brian represent two effective examples of integration of a complex C++ code with the Matlab application. These allow the JSBSim users that have access to Matlab to bring all the advantages offered by JSBSim into that sophisticated and powerful computing environment. Please do not hesitate to give us your feedback. Suggestions are welcome in order to make this little toy useful for aerospace students and engineers. Regards, Agostino ------------------------------------------------------- Agostino De Marco, PhD Assistant Professor Università degli Studi di Napoli Federico II / University of Naples Federico II / Dipartimento di Ingegneria Aerospaziale / Department of Aerospace Engineering / http://jsbsim.sourceforge.net/about.html http://www.dias.unina.it/demarco http://www.dias.unina.it/adag ------------------------------------------------------- Quoting "Michael.McCarthy" <Mic...@ul...>: > Hi Brian > > Many thanks for the detailed response. That is indeed a powerful > facility. I did not realise the entire JSBSim program was available > in the S-Function. As you say that opens up using all the different > JSBSim aircraft within matlab, which is very exciting. > > I will be working on getting familiar with all this over the coming > weeks, so no doubt will have some follow up questions and feedback. > > Thanks for this great initiative. > > Regards > Michael > > ________________________________ > > From: b mills [mailto:bri...@in...] > Sent: Sun 20/06/2010 06:10 > To: jsb...@li... > Subject: Re: [Jsbsim-matlab] S-function > > > > > Hello Michael! > > Your question is not dumb at all, and in fact it is very reasonable > that JSBSim and Simulink could be a bit overwhelming to a new > user...or a seasoned user as well. > > Let me first say that I'm excited that my project may find its way > into a college classroom, as that was one of the intended uses ;). > That said, I know that my current documentation for the project > leaves much to be desired. I'm working on something of a white > paper/user doc currently, but it will be a few more weeks before > anything is ready for release. > > OK, let me attempt to put all this together so that it makes sense > and you can get started.... > > JSBSim is the default non-linear flight dynamic model used in the > FlightGear flight simulator project. The JSBSim S Function takes the > JSBSim code and compiles it into a matlab compatible executable > file that is called a MEX file. An S Function is a user-defined > Simulink function that can be written in M, ADA, C etc, and can be > in the form of a MEX file. What is nice about a MEX S Function is > that it can be a rather complex external program (like JSBSim), but > is treated as a simple Simulink block. Now, all the power of JSBSim > flight modeling software is available in any Simulink model. > > > > > With the JSBSim Sfunction, any JSBSim compatible aircraft FDM/engine > file that is located in the JSBSimData/aircraft or .../engine > folder can be run in any Simulink simulation. This is quite > powerful as there are many decent FDMs already available to start > out with. The S Function can then be used for many different > teaching scenarios such as: > > * > > > * > how to trim an aircraft using the built-in trim utility > * > linearizing non-linear models and analyzing the decoupled > state-space matrices > * > flight model validation and construction > * > control system and autopilot system design with the JSBSim S > Function acting as the plant > * > using an events driven tool like StateFlow to script a flight > > > The flight scripting that you mention is something that I would be > interested in working with you on as it is a capability that I have > not really explored as of yet, but would like to implement better in > the future. > > To get started using the S Function, simply type "jsbsimgui_start" > at the Matlab command line- this will launch the JSBSim GUI > application. The JSBSim GUI is just a convenient way to initialize > all of the Sfunction parameters such as the Simulink model (use the > default choice), the delta time, the JSBSim multiplier (allows you > run simulations much faster), the trim utility, and all of the > aircraft control inputs and states. > > Please read the README text file and use the Help button on the GUI > for further explanation. Also please keep in mind that this is still > a developing project with much further development work needed so > there may be some bugs :). Also, I will attach my incomplete paper > that I am working on (it is a rough draft so please bear with me...) > which will explain things in more detail, like the trim script and > the different MEX files used. > > So to sum it up, the JSBSim S Function would be a great tool to > teach your students as it brings a well-established non-linear > flight dynamic modeling engine directly into Simulink as a single > block. Any control system can be built around it and all the > states, propulsion parameters, control parameters, state derivatives > etc are made available as outputs from the S Function block. Any > JSBSim compatible flight model file available can be run and > analyzed in a way not previously available. > > Best of luck and please keep in touch with me as I am interested in > getting feedback from users on how the project is being used. Also > keep an eye out for updates as some may be coming soon. > > Best Regards, > > Brian Mills > > > > ----- Original Message ----- > From: "Michael.McCarthy" <Mic...@ul...> > Date: Thursday, June 17, 2010 19:14 > Subject: [Jsbsim-matlab] S-function > To: jsb...@li... > >> Hi Brian >> >> This is going to sound like a really dumb question, but I was >> just wondering if you could post something that explains in a >> nutshell what the S-function does and how it can be used. I have >> downloaded it and played with it a little but am still not too sure. >> >> To put my question in context, I am new to JSBSim, and pretty >> new to Simulink too. I've obtained the matlab aerospace toolbox >> and blockset, and am trying to make sense of it all. My main >> motivation is obtaining tools that will help me in teaching >> Stability and Control of Aircraft in an exciting way. The >> aerospace blockset looks too complex for that. >> >> Currently my thinking is to use Datcom, Matlab, JSBSim and >> (possibly) Flightgear. Our students generally aren't able to fly >> aircraft in Flightgear so I am thinking more in terms of >> scripted flights, for which we can then apply different control >> system approaches. >> >> If you could advise on how your S-function could assist with >> that it would be great. >> >> Many thanks >> Michael >> >> >> > |
From: Michael.McCarthy <Mic...@ul...> - 2010-06-21 08:41:31
|
Hi Brian Many thanks for the detailed response. That is indeed a powerful facility. I did not realise the entire JSBSim program was available in the S-Function. As you say that opens up using all the different JSBSim aircraft within matlab, which is very exciting. I will be working on getting familiar with all this over the coming weeks, so no doubt will have some follow up questions and feedback. Thanks for this great initiative. Regards Michael ________________________________ From: b mills [mailto:bri...@in...] Sent: Sun 20/06/2010 06:10 To: jsb...@li... Subject: Re: [Jsbsim-matlab] S-function Hello Michael! Your question is not dumb at all, and in fact it is very reasonable that JSBSim and Simulink could be a bit overwhelming to a new user...or a seasoned user as well. Let me first say that I'm excited that my project may find its way into a college classroom, as that was one of the intended uses ;). That said, I know that my current documentation for the project leaves much to be desired. I'm working on something of a white paper/user doc currently, but it will be a few more weeks before anything is ready for release. OK, let me attempt to put all this together so that it makes sense and you can get started.... JSBSim is the default non-linear flight dynamic model used in the FlightGear flight simulator project. The JSBSim S Function takes the JSBSim code and compiles it into a matlab compatible executable file that is called a MEX file. An S Function is a user-defined Simulink function that can be written in M, ADA, C etc, and can be in the form of a MEX file. What is nice about a MEX S Function is that it can be a rather complex external program (like JSBSim), but is treated as a simple Simulink block. Now, all the power of JSBSim flight modeling software is available in any Simulink model. With the JSBSim Sfunction, any JSBSim compatible aircraft FDM/engine file that is located in the JSBSimData/aircraft or .../engine folder can be run in any Simulink simulation. This is quite powerful as there are many decent FDMs already available to start out with. The S Function can then be used for many different teaching scenarios such as: * * how to trim an aircraft using the built-in trim utility * linearizing non-linear models and analyzing the decoupled state-space matrices * flight model validation and construction * control system and autopilot system design with the JSBSim S Function acting as the plant * using an events driven tool like StateFlow to script a flight The flight scripting that you mention is something that I would be interested in working with you on as it is a capability that I have not really explored as of yet, but would like to implement better in the future. To get started using the S Function, simply type "jsbsimgui_start" at the Matlab command line- this will launch the JSBSim GUI application. The JSBSim GUI is just a convenient way to initialize all of the Sfunction parameters such as the Simulink model (use the default choice), the delta time, the JSBSim multiplier (allows you run simulations much faster), the trim utility, and all of the aircraft control inputs and states. Please read the README text file and use the Help button on the GUI for further explanation. Also please keep in mind that this is still a developing project with much further development work needed so there may be some bugs :). Also, I will attach my incomplete paper that I am working on (it is a rough draft so please bear with me...) which will explain things in more detail, like the trim script and the different MEX files used. So to sum it up, the JSBSim S Function would be a great tool to teach your students as it brings a well-established non-linear flight dynamic modeling engine directly into Simulink as a single block. Any control system can be built around it and all the states, propulsion parameters, control parameters, state derivatives etc are made available as outputs from the S Function block. Any JSBSim compatible flight model file available can be run and analyzed in a way not previously available. Best of luck and please keep in touch with me as I am interested in getting feedback from users on how the project is being used. Also keep an eye out for updates as some may be coming soon. Best Regards, Brian Mills ----- Original Message ----- From: "Michael.McCarthy" <Mic...@ul...> Date: Thursday, June 17, 2010 19:14 Subject: [Jsbsim-matlab] S-function To: jsb...@li... > Hi Brian > > This is going to sound like a really dumb question, but I was > just wondering if you could post something that explains in a > nutshell what the S-function does and how it can be used. I have > downloaded it and played with it a little but am still not too sure. > > To put my question in context, I am new to JSBSim, and pretty > new to Simulink too. I've obtained the matlab aerospace toolbox > and blockset, and am trying to make sense of it all. My main > motivation is obtaining tools that will help me in teaching > Stability and Control of Aircraft in an exciting way. The > aerospace blockset looks too complex for that. > > Currently my thinking is to use Datcom, Matlab, JSBSim and > (possibly) Flightgear. Our students generally aren't able to fly > aircraft in Flightgear so I am thinking more in terms of > scripted flights, for which we can then apply different control > system approaches. > > If you could advise on how your S-function could assist with > that it would be great. > > Many thanks > Michael > > > |
From: b m. <bri...@in...> - 2010-06-20 05:14:16
|
<DIV>As promised, attached is the very rough draft of the paper.<BR><BR>----- Original Message -----<BR>From: "Michael.McCarthy" <Mic...@ul...><BR>Date: Thursday, June 17, 2010 19:14<BR>Subject: [Jsbsim-matlab] S-function<BR>To: jsb...@li...<BR><BR>> Hi Brian<BR>> <BR>> This is going to sound like a really dumb question, but I was <BR>> just wondering if you could post something that explains in a <BR>> nutshell what the S-function does and how it can be used. I have <BR>> downloaded it and played with it a little but am still not too sure.<BR>> <BR>> To put my question in context, I am new to JSBSim, and pretty <BR>> new to Simulink too. I've obtained the matlab aerospace toolbox <BR>> and blockset, and am trying to make sense of it all. My main <BR>> motivation is obtaining tools that will help me in teaching <BR>> Stability and Control of Aircraft in an exciting way. The <BR>> aerospace blockset looks too complex for that.<BR>> <BR>> Currently my thinking is to use Datcom, Matlab, JSBSim and <BR>> (possibly) Flightgear. Our students generally aren't able to fly <BR>> aircraft in Flightgear so I am thinking more in terms of <BR>> scripted flights, for which we can then apply different control <BR>> system approaches. <BR>> <BR>> If you could advise on how your S-function could assist with <BR>> that it would be great.<BR>> <BR>> Many thanks<BR>> Michael <BR>> <BR>> <BR>> </DIV> |
From: b m. <bri...@in...> - 2010-06-20 05:10:07
|
Hello Michael! Your question is not dumb at all, and in fact it is very reasonable that JSBSim and Simulink could be a bit overwhelming to a new user...or a seasoned user as well. Let me first say that I'm excited that my project may find its way into a college classroom, as that was one of the intended uses ;). That said, I know that my current documentation for the project leaves much to be desired. I'm working on something of a white paper/user doc currently, but it will be a few more weeks before anything is ready for release. OK, let me attempt to put all this together so that it makes sense and you can get started.... JSBSim is the default non-linear flight dynamic model used in the FlightGear flight simulator project. The JSBSim S Function takes the JSBSim code and compiles it into a matlab compatible executable file that is called a MEX file. An S Function is a user-defined Simulink function that can be written in M, ADA, C etc, and can be in the form of a MEX file. What is nice about a MEX S Function is that it can be a rather complex external program (like JSBSim), but is treated as a simple Simulink block. Now, all the power of JSBSim flight modeling software is available in any Simulink model. With the JSBSim Sfunction, any JSBSim compatible aircraft FDM/engine file that is located in the JSBSimData/aircraft or .../engine folder can be run in any Simulink simulation. This is quite powerful as there are many decent FDMs already available to start out with. The S Function can then be used for many different teaching scenarios such as: how to trim an aircraft using the built-in trim utility linearizing non-linear models and analyzing the decoupled state-space matrices flight model validation and construction control system and autopilot system design with the JSBSim S Function acting as the plant using an events driven tool like StateFlow to script a flight The flight scripting that you mention is something that I would be interested in working with you on as it is a capability that I have not really explored as of yet, but would like to implement better in the future. To get started using the S Function, simply type “jsbsimgui_start” at the Matlab command line- this will launch the JSBSim GUI application. The JSBSim GUI is just a convenient way to initialize all of the Sfunction parameters such as the Simulink model (use the default choice), the delta time, the JSBSim multiplier (allows you run simulations much faster), the trim utility, and all of the aircraft control inputs and states. Please read the README text file and use the Help button on the GUI for further explanation. Also please keep in mind that this is still a developing project with much further development work needed so there may be some bugs :). Also, I will attach my incomplete paper that I am working on (it is a rough draft so please bear with me...) which will explain things in more detail, like the trim script and the different MEX files used. So to sum it up, the JSBSim S Function would be a great tool to teach your students as it brings a well-established non-linear flight dynamic modeling engine directly into Simulink as a single block. Any control system can be built around it and all the states, propulsion parameters, control parameters, state derivatives etc are made available as outputs from the S Function block. Any JSBSim compatible flight model file available can be run and analyzed in a way not previously available. Best of luck and please keep in touch with me as I am interested in getting feedback from users on how the project is being used. Also keep an eye out for updates as some may be coming soon. Best Regards, Brian Mills ----- Original Message ----- From: "Michael.McCarthy" <Mic...@ul...> Date: Thursday, June 17, 2010 19:14 Subject: [Jsbsim-matlab] S-function To: jsb...@li... > Hi Brian > > This is going to sound like a really dumb question, but I was > just wondering if you could post something that explains in a > nutshell what the S-function does and how it can be used. I have > downloaded it and played with it a little but am still not too sure. > > To put my question in context, I am new to JSBSim, and pretty > new to Simulink too. I've obtained the matlab aerospace toolbox > and blockset, and am trying to make sense of it all. My main > motivation is obtaining tools that will help me in teaching > Stability and Control of Aircraft in an exciting way. The > aerospace blockset looks too complex for that. > > Currently my thinking is to use Datcom, Matlab, JSBSim and > (possibly) Flightgear. Our students generally aren't able to fly > aircraft in Flightgear so I am thinking more in terms of > scripted flights, for which we can then apply different control > system approaches. > > If you could advise on how your S-function could assist with > that it would be great. > > Many thanks > Michael > > > |
From: Michael.McCarthy <Mic...@ul...> - 2010-06-17 10:14:19
|
Hi Brian This is going to sound like a really dumb question, but I was just wondering if you could post something that explains in a nutshell what the S-function does and how it can be used. I have downloaded it and played with it a little but am still not too sure. To put my question in context, I am new to JSBSim, and pretty new to Simulink too. I've obtained the matlab aerospace toolbox and blockset, and am trying to make sense of it all. My main motivation is obtaining tools that will help me in teaching Stability and Control of Aircraft in an exciting way. The aerospace blockset looks too complex for that. Currently my thinking is to use Datcom, Matlab, JSBSim and (possibly) Flightgear. Our students generally aren't able to fly aircraft in Flightgear so I am thinking more in terms of scripted flights, for which we can then apply different control system approaches. If you could advise on how your S-function could assist with that it would be great. Many thanks Michael |
From: Jon S. B. <jon...@co...> - 2010-06-02 11:19:48
|
I have uploaded Brian Mills' new JSBSim SFunction to the JSBSim web site at: http://jsbsim.sf.net/JSBSimSFunction.zip Jon |
From: Jon S. B. <jon...@co...> - 2010-06-02 04:03:38
|
Two major JSBSim announcements coming later this evening or tomorrow morning. Jon |
From: b m. <bri...@in...> - 2010-05-11 14:22:47
|
A major new upgrade to the JSBSim S-Function project will be released very soon - a trim and linearization function! The foundation for the trim and linearization script was originally part of the Aerosim blockset and was written by Marius Niculescu of U-Dynamics. He generously allowed me to incorporate it into the project. Now when a model is selected to run in the GUI, it can be trimmed to the flight condition and control inputs that are in the GUI fields. After trimming it will be linearized with decoupled state-space matrices and eigen-values printed to the workspace. The new trimmed states and control inputs are then available for use in subsequent There is also a win64 compiled mex file in the project ( I hope to have a Mac OS version in the near future as well.) I am waiting on some feedback and a few documentation changes before I release the project, but it won't be long. Best Regards, Brian Mills |
From: b m. <bri...@in...> - 2010-04-29 01:38:20
|
Hello All, I've made some minor changes to the SFunction so here is my DropBox link to download the latest project zip. As usual please read the JSBSim_SFunction.m file for the latest changes. http://dl.dropbox.com/u/5284957/JSBSimGUI_SFunction_042810.zip FYI it is my hope to soon have a limited trim and linearization capability built into the project! When this happens i will send out a new DropBox link so everyone can download it. Cheers! Brain Mills |
From: b m. <bri...@in...> - 2010-03-30 03:45:10
|
Link for new JSBSim S-Function: http://dl.dropbox.com/u/5284957/JSBSimGUI_SFunction_2.zip This also contains JSBSim aircraft and engine files. I hope this is OK with you Jon. Thanks! Brian Mills |
From: Jon S. B. <jon...@co...> - 2010-02-25 05:29:58
|
One more thing: the sim-time-sec property has been changed. It is now simulation/sim-time-sec Thanks, Jon > -----Original Message----- > From: Jon S. Berndt [mailto:jon...@co...] > Sent: Wednesday, February 24, 2010 11:25 PM > To: Jsbsim-Announce (jsb...@li...); 'Development > issues'; 'jsb...@li...' > Subject: Major Change in JSBSim > Importance: High > > I have made this evening a major change in JSBSim. I have removed the > FGState class. This class had become mainly a holder of the simulation > time, the timestep size, and initialization functions. Those functions > have been moved to the executive, FGFDMExec. The interface class for > FlightGear, JSBSim.cxx, has been adjusted in JSBSim CVS. > > For other simulations such as OpenEaagles and Outtera, the application > that calls JSBSim should be careful to make sure that the executive is > used to access the time functions. > > Jon |
From: Jon S. B. <jon...@co...> - 2010-02-25 05:24:58
|
I have made this evening a major change in JSBSim. I have removed the FGState class. This class had become mainly a holder of the simulation time, the timestep size, and initialization functions. Those functions have been moved to the executive, FGFDMExec. The interface class for FlightGear, JSBSim.cxx, has been adjusted in JSBSim CVS. For other simulations such as OpenEaagles and Outtera, the application that calls JSBSim should be careful to make sure that the executive is used to access the time functions. Jon |
From: b m. <bri...@in...> - 2009-08-19 09:40:04
|
Hi everybody, It has been awhile since there has been any news about the SFunction project. Well, finally there is something to write about- A new JSBSim SFunction release is on the Mathworks website. This "new" version has some minor changes to make it compatible with the new JSBSim 1.0 release candidate. Also, because of a change in the Mathworks license policy, the download no longer includes JSBSim. You must now download it separately from sourceforge. Please give it a try and let me know what you think. It's still "barebones," but I have plans (time allowing) to make improvements and add features. Regards, Brian |
From: Roberts, D. J. <dro...@mi...> - 2009-04-08 14:06:25
|
Thanks Agostino, Opened it up in MS Visual Studio 2008 Express, and then changed a few include paths and it compiled & linked. I've changed some of the parameter access to utilize nodes. I'll test it soon to see how much speed up I get. -Dave Roberts -----Original Message----- From: jsb...@li... [mailto:jsb...@li...] Sent: Tuesday, April 07, 2009 4:31 PM To: jsb...@li... Subject: Jsbsim-matlab Digest, Vol 3, Issue 1 Send Jsbsim-matlab mailing list submissions to jsb...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/jsbsim-matlab or, via email, send a message with subject or body 'help' to jsb...@li... You can reach the person managing the list at jsb...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Jsbsim-matlab digest..." Today's Topics: 1. Mathworks File Submission (b mills) 2. Re: Mathworks File Submission (Bowman, D. Stuart) 3. Re: Mathworks File Submission (b mills) 4. compiling mex file for S-Function (Roberts, David J.) 5. Re: compiling mex file for S-Function (Agostino De Marco) ---------------------------------------------------------------------- Message: 1 Date: Wed, 01 Apr 2009 22:24:42 -0400 From: b mills <bri...@in...> Subject: [Jsbsim-matlab] Mathworks File Submission To: "jsb...@li..." <jsb...@li...> Message-ID: <fc8...@in...> Content-Type: text/plain; charset="us-ascii" Hi folks, Just wanted to let everyone know that the SFunction project is available for download from the Mathworks website- http://www.mathworks.com/matlabcentral/fileexchange/file_infos Simply type "JSBSim" in the search criteria and it should show up. Cheers! Brian -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Mon, 6 Apr 2009 10:41:53 -0400 From: "Bowman, D. Stuart" <sb...@mi...> Subject: Re: [Jsbsim-matlab] Mathworks File Submission To: "jsb...@li..." <jsb...@li...> Message-ID: <837...@IM...> Content-Type: text/plain; charset="us-ascii" Works great for me!! Thanks for sharing, Brian. You may consider adding a how-to-run text file to your zip file. I'm pretty familiar with Simulink and it still took me a few tries before I had the paths set correctly and got the test model working. -stuart From: b mills [mailto:bri...@in...] Sent: Wednesday, April 01, 2009 10:25 PM To: jsb...@li... Subject: [Jsbsim-matlab] Mathworks File Submission Hi folks, Just wanted to let everyone know that the SFunction project is available for download from the Mathworks website- http://www.mathworks.com/matlabcentral/fileexchange/file_infos Simply type "JSBSim" in the search criteria and it should show up. Cheers! Brian -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Tue, 07 Apr 2009 06:12:18 -0400 From: b mills <bri...@in...> Subject: Re: [Jsbsim-matlab] Mathworks File Submission To: jsb...@li... Message-ID: <fc7...@in...> Content-Type: text/plain; charset="us-ascii" You're right. I will try to get something added soon. Thanks! ----- Original Message ----- From: "Bowman, D. Stuart" <sb...@mi...> Date: Monday, April 6, 2009 10:42 Subject: Re: [Jsbsim-matlab] Mathworks File Submission To: "jsb...@li..." <jsb...@li...> > Works great for me!! Thanks for sharing, Brian. > > You may consider adding a how-to-run text file to your zip file. > I'm pretty familiar with Simulink and it still took me a few > tries before I had the paths set correctly and got the test > model working. > > -stuart > From: b mills [mailto:bri...@in...] > Sent: Wednesday, April 01, 2009 10:25 PM > To: jsb...@li... > Subject: [Jsbsim-matlab] Mathworks File Submission > > Hi folks, > > Just wanted to let everyone know that the SFunction project is > available for download from the Mathworks website- > http://www.mathworks.com/matlabcentral/fileexchange/file_infosSimply type "JSBSim" in the search criteria and it should show up. > > Cheers! > Brian > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 4 Date: Tue, 7 Apr 2009 13:38:42 -0400 From: "Roberts, David J." <dro...@mi...> Subject: [Jsbsim-matlab] compiling mex file for S-Function To: "jsb...@li..." <jsb...@li...> Message-ID: <3CB...@IM...> Content-Type: text/plain; charset="us-ascii" Brian, Stuart pointed me towards your mathworks submission. I tried your sfuntest3.mdl and it works nicely. I'm interested in making use of it. I noticed it is slower than JSBSim. I think this is probably due to use of the GetPropertyValue() method at 120hz. From looking at JSBSim source I notice that comments suggest using the GetNode() function and then using the node's getDoubleValue() function for calls at 120hz. I'm going to try to modify JSBSimInterface.cpp & JSBSimInterface.h to incorporate this. Do you have the mex statement that you used to compile JSBSim_SFunction.mexw32? I tried with the following statement: mex -g JSBSim_SFunction.cpp JSBSimInterface.cpp MexJSBSim.cpp SfunInterface.cpp stdafx.cpp -I"..\JSBSim\src\" -L"..\JSBSim\lib\" When I do this I get an error concerning MexJSBSim.cpp at line 111. The compiler spits out: 'JSBSimInterface::Open' : cannot convert parameter 1 from 'const mxArray *' to 'std::string'. Is there a compile option that I'm forgetting that handles data type conversions? Regards, David Roberts -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 5 Date: Tue, 07 Apr 2009 22:30:34 +0200 From: Agostino De Marco <ago...@un...> Subject: Re: [Jsbsim-matlab] compiling mex file for S-Function To: jsb...@li..., "Roberts, David J." <dro...@mi...> Cc: "jsb...@li..." <jsb...@li...> Message-ID: <200...@we...> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" David, that project is compiled with MS Visual Studio 2008 Express. That might be a bad thing for someone. For others that is one good example of mex files done with the popular IDE from MS. It helps a lot when you have big a project. Agostino Quoting "Roberts, David J." <dro...@mi...>: > Brian, > > Stuart pointed me towards your mathworks submission.? I tried your? > sfuntest3.mdl and it works nicely.? I'm interested in making use of? > it. > > I noticed it is slower than JSBSim.? I think this is probably due to? > use of the GetPropertyValue() method at 120hz.? From looking at? > JSBSim source I notice that comments suggest using the GetNode()? > function and then using the node's getDoubleValue() function for? > calls at 120hz. > > I'm going to try to modify JSBSimInterface.cpp &? JSBSimInterface.h? > to incorporate this.? ?Do you have the mex statement that you used? > to compile JSBSim_SFunction.mexw32? > > I tried with the following statement: > > mex -g JSBSim_SFunction.cpp JSBSimInterface.cpp MexJSBSim.cpp? > SfunInterface.cpp stdafx.cpp? -I"..\JSBSim\src\" -L"..\JSBSim\lib\" > > When I do this I get an error concerning MexJSBSim.cpp at line 111.? ? > The compiler spits out: 'JSBSimInterface::Open' : cannot convert? > parameter 1 from 'const mxArray *' to 'std::string'. > > Is there a compile option that I'm forgetting that handles data type? > conversions? > > Regards, > > David Roberts > > ------------------------------------------------------- Agostino De Marco, PhD Assistant Professor Universit? degli Studi di Napoli Federico II / University of Naples Federico II / Dipartimento di Ingegneria Aerospaziale / Department of Aerospace Engineering / via Claudio 21, 80125 Napoli - Italy Tel.: +39 0817683323 Fax:? +39 0817683622 Email: ago...@un... Web 1: www.dpa.unina.it/adag Web 2: www.dpa.unina.it/demarco ------------------------------------------------------- ------------------------------ ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ------------------------------ _______________________________________________ Jsbsim-matlab mailing list Jsb...@li... https://lists.sourceforge.net/lists/listinfo/jsbsim-matlab End of Jsbsim-matlab Digest, Vol 3, Issue 1 ******************************************* |
From: b m. <bri...@in...> - 2009-04-08 10:39:35
|
Hi Robert, I double checked and using a simulation run of 0.1 seconds- the S-Function completed 13 cycles. This validates that the simulation is running at 120 cyles per "sim second." One thing to keep in mind though- Simulink is not necessarily run in real-time, so a "sim-second" may not last an "actual" second. So 10 seconds in Simulink may not take 10 seconds in real-time. I take it this is what you are are talking about. Now, it's not that I'm saying that you are incorrect, just that it's possbile that the issue resides in the fact that Simulink, and in fact JSBSim, are not necessarily truly running in real-time. On our commercial sims that run on Windows PCs, the sim real-time application is augmented with a 3rd party real-time application. Brian ----- Original Message ----- From: "Roberts, David J." <dro...@mi...> Date: Tuesday, April 7, 2009 13:39 Subject: [Jsbsim-matlab] compiling mex file for S-Function To: "jsb...@li..." <jsb...@li...> > Brian, > > Stuart pointed me towards your mathworks submission. I > tried your sfuntest3.mdl and it works nicely. I'm > interested in making use of it. > > I noticed it is slower than JSBSim. I think this is > probably due to use of the GetPropertyValue() method at > 120hz. From looking at JSBSim source I notice that > comments suggest using the GetNode() function and then using the > node's getDoubleValue() function for calls at 120hz. > > I'm going to try to modify JSBSimInterface.cpp & > JSBSimInterface.h to incorporate this. Do you have > the mex statement that you used to compile JSBSim_SFunction.mexw32? > > I tried with the following statement: > > mex -g JSBSim_SFunction.cpp JSBSimInterface.cpp MexJSBSim.cpp > SfunInterface.cpp stdafx.cpp -I"..\JSBSim\src\" - > L"..\JSBSim\lib\" > When I do this I get an error concerning MexJSBSim.cpp at line > 111. The compiler spits out: 'JSBSimInterface::Open' : > cannot convert parameter 1 from 'const mxArray *' to 'std::string'. > > Is there a compile option that I'm forgetting that handles data > type conversions? > > Regards, > > David Roberts > > |
From: b m. <bri...@in...> - 2009-04-07 20:59:28
|
Hi David, Are you sure about it being slower? Do you have your Simulink Parameters set up for a sample time of 1/120 ? Brian ----- Original Message ----- From: "Roberts, David J." <dro...@mi...> Date: Tuesday, April 7, 2009 13:39 Subject: [Jsbsim-matlab] compiling mex file for S-Function To: "jsb...@li..." <jsb...@li...> > Brian, > > Stuart pointed me towards your mathworks submission. I > tried your sfuntest3.mdl and it works nicely. I'm > interested in making use of it. > > I noticed it is slower than JSBSim. I think this is > probably due to use of the GetPropertyValue() method at > 120hz. From looking at JSBSim source I notice that > comments suggest using the GetNode() function and then using the > node's getDoubleValue() function for calls at 120hz. > > I'm going to try to modify JSBSimInterface.cpp & > JSBSimInterface.h to incorporate this. Do you have > the mex statement that you used to compile JSBSim_SFunction.mexw32? > > I tried with the following statement: > > mex -g JSBSim_SFunction.cpp JSBSimInterface.cpp MexJSBSim.cpp > SfunInterface.cpp stdafx.cpp -I"..\JSBSim\src\" - > L"..\JSBSim\lib\" > When I do this I get an error concerning MexJSBSim.cpp at line > 111. The compiler spits out: 'JSBSimInterface::Open' : > cannot convert parameter 1 from 'const mxArray *' to 'std::string'. > > Is there a compile option that I'm forgetting that handles data > type conversions? > > Regards, > > David Roberts > > |
From: Agostino De M. <ago...@un...> - 2009-04-07 20:30:40
|
David, that project is compiled with MS Visual Studio 2008 Express. That might be a bad thing for someone. For others that is one good example of mex files done with the popular IDE from MS. It helps a lot when you have big a project. Agostino Quoting "Roberts, David J." <dro...@mi...>: > Brian, > > Stuart pointed me towards your mathworks submission. I tried your > sfuntest3.mdl and it works nicely. I'm interested in making use of > it. > > I noticed it is slower than JSBSim. I think this is probably due to > use of the GetPropertyValue() method at 120hz. From looking at > JSBSim source I notice that comments suggest using the GetNode() > function and then using the node's getDoubleValue() function for > calls at 120hz. > > I'm going to try to modify JSBSimInterface.cpp & JSBSimInterface.h > to incorporate this. Do you have the mex statement that you used > to compile JSBSim_SFunction.mexw32? > > I tried with the following statement: > > mex -g JSBSim_SFunction.cpp JSBSimInterface.cpp MexJSBSim.cpp > SfunInterface.cpp stdafx.cpp -I"..\JSBSim\src\" -L"..\JSBSim\lib\" > > When I do this I get an error concerning MexJSBSim.cpp at line 111. > The compiler spits out: 'JSBSimInterface::Open' : cannot convert > parameter 1 from 'const mxArray *' to 'std::string'. > > Is there a compile option that I'm forgetting that handles data type > conversions? > > Regards, > > David Roberts > > ------------------------------------------------------- Agostino De Marco, PhD Assistant Professor Università degli Studi di Napoli Federico II / University of Naples Federico II / Dipartimento di Ingegneria Aerospaziale / Department of Aerospace Engineering / via Claudio 21, 80125 Napoli - Italy Tel.: +39 0817683323 Fax: +39 0817683622 Email: ago...@un... Web 1: www.dpa.unina.it/adag Web 2: www.dpa.unina.it/demarco ------------------------------------------------------- |
From: Roberts, D. J. <dro...@mi...> - 2009-04-07 17:38:55
|
Brian, Stuart pointed me towards your mathworks submission. I tried your sfuntest3.mdl and it works nicely. I'm interested in making use of it. I noticed it is slower than JSBSim. I think this is probably due to use of the GetPropertyValue() method at 120hz. From looking at JSBSim source I notice that comments suggest using the GetNode() function and then using the node's getDoubleValue() function for calls at 120hz. I'm going to try to modify JSBSimInterface.cpp & JSBSimInterface.h to incorporate this. Do you have the mex statement that you used to compile JSBSim_SFunction.mexw32? I tried with the following statement: mex -g JSBSim_SFunction.cpp JSBSimInterface.cpp MexJSBSim.cpp SfunInterface.cpp stdafx.cpp -I"..\JSBSim\src\" -L"..\JSBSim\lib\" When I do this I get an error concerning MexJSBSim.cpp at line 111. The compiler spits out: 'JSBSimInterface::Open' : cannot convert parameter 1 from 'const mxArray *' to 'std::string'. Is there a compile option that I'm forgetting that handles data type conversions? Regards, David Roberts |