JSBSim Model Interface Class Fix

List of bug fixes and updates found after version posted.

JSBSim Model Interface Class Fix

Postby doug » Thu Jan 03, 2008 5:13 pm

In OpenEaagles version 7.12 (2007_1210), the JSBSimModel class was derived off of the Simulation::DynamicsModel class. (See JSBSimModel.h header file located in includes/vehicles directory.) As a result, the JSBSim model will work (i.e. fly), but will not respond to stick and throttle commands. To correct this behavior, the class JSBSimModel should be derived off of Simulation::AerodynamicsModel.

The correct code (in the file JSBSimModel.h) should look like this:

Code: Select all
----- In file JSBSimModel.h  change the following 3 lines from… ----
class DLLEXP JSBSimModel : public Simulation::DynamicsModel
{
    DECLARE_SUBCLASS(JSBSimModel,Simulation::DynamicsModel)

----- to the following 3 lines. ------
class DLLEXP JSBSimModel : public Simulation::AerodynamicsModel
{
    DECLARE_SUBCLASS(JSBSimModel,Simulation::AerodynamicsModel)

Corrected file is also attached.

Doug
Attachments
JSBSimModel.h
JSBSim Interface Header file
(4.5 KiB) Downloaded 155 times
doug
Site Admin
 
Posts: 206
Joined: Tue Jan 01, 2008 10:00 pm

Re: JSBSim Model Interface Class Fix

Postby doug » Sun Mar 30, 2008 11:02 am

Fix included in Version 2008_0330.

Doug
doug
Site Admin
 
Posts: 206
Joined: Tue Jan 01, 2008 10:00 pm


Return to Version 7.12 Updates

Who is online

Users browsing this forum: No registered users and 1 guest

cron