]> git.mxchange.org Git - flightgear.git/commitdiff
Update to the Mini FDM network protocal (mostly renaming class and file names)
authorcurt <curt>
Sun, 12 Jan 2003 23:39:18 +0000 (23:39 +0000)
committercurt <curt>
Sun, 12 Jan 2003 23:39:18 +0000 (23:39 +0000)
Wired this in to options.cxx and fg_io.cxx so it can be activated.

src/Main/fg_io.cxx
src/Main/options.cxx
src/Network/Makefile.am
src/Network/mini_fdm.cxx [new file with mode: 0644]
src/Network/mini_fdm.hxx [new file with mode: 0644]
src/Network/native_fdm_mini.cxx [deleted file]
src/Network/native_fdm_mini.hxx [deleted file]
src/Network/net_fdm_mini.hxx

index b623d2a5e32c38a18bbfe1c59ab5f52b13da19ef..b987fe6a71a424c34ee0c91b24d91857bff07caa 100644 (file)
@@ -46,6 +46,7 @@
 #  include <Network/jpg-httpd.hxx>
 #endif
 #include <Network/joyclient.hxx>
+#include <Network/mini_fdm.hxx>
 #include <Network/native.hxx>
 #include <Network/native_ctrls.hxx>
 #include <Network/native_fdm.hxx>
@@ -136,6 +137,9 @@ FGIO::parse_port_config( const string& config )
        } else if ( protocol == "native_fdm" ) {
            FGNativeFDM *native_fdm = new FGNativeFDM;
            io = native_fdm;
+       } else if ( protocol == "mini_fdm" ) {
+           FGMiniFDM *mini_fdm = new FGMiniFDM;
+           io = mini_fdm;
        } else if ( protocol == "nmea" ) {
            FGNMEA *nmea = new FGNMEA;
            io = nmea;
index ce2c40f2f6775978d676cd033f5ac1e371a2219c..abe3acb61c8622386aed01b3d1d574e0ae40f46c 100644 (file)
@@ -915,6 +915,8 @@ parse_option (const string& arg)
        add_channel( "native_ctrls", arg.substr(15) );
     } else if ( arg.find( "--native-fdm=" ) == 0 ) {
        add_channel( "native_fdm", arg.substr(13) );
+    } else if ( arg.find( "--mini-fdm=" ) == 0 ) {
+       add_channel( "mini_fdm", arg.substr(13) );
     } else if ( arg.find( "--opengc=" ) == 0 ) {
        // char stop;
        // cout << "Adding channel for OpenGC Display" << endl; cin >> stop;
index d9a2eed61eb57ef47186e49108fa672c012cd454..5d307cd55a66e07d6e6d857691d2b65dfac2d58a 100644 (file)
@@ -14,10 +14,10 @@ libNetwork_a_SOURCES = \
         httpd.cxx httpd.hxx \
         $(JPEG_SERVER) \
        joyclient.cxx joyclient.hxx \
+       mini_fdm.cxx mini_fdm.hxx \
        native.cxx native.hxx \
        native_ctrls.cxx native_ctrls.hxx \
        native_fdm.cxx native_fdm.hxx \
-       native_fdm_mini.cxx native_fdm_mini.hxx \
        net_ctrls.hxx net_fdm.hxx net_fdm_mini.hxx \
         nmea.cxx nmea.hxx \
         opengc.cxx opengc.hxx opengc_data.hxx \
diff --git a/src/Network/mini_fdm.cxx b/src/Network/mini_fdm.cxx
new file mode 100644 (file)
index 0000000..f5b7ef2
--- /dev/null
@@ -0,0 +1,244 @@
+// native_fdm.cxx -- FGFS "Native" flight dynamics protocal class
+//
+// Written by Curtis Olson, started September 2001.
+//
+// Copyright (C) 2001  Curtis L. Olson - curt@flightgear.org
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of the
+// License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+//
+// $Id$
+
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <simgear/debug/logstream.hxx>
+#include <simgear/io/lowlevel.hxx> // endian tests
+#include <simgear/io/iochannel.hxx>
+#include <simgear/timing/sg_time.hxx>
+
+#include <FDM/flight.hxx>
+#include <Time/tmp.hxx>
+#include <Main/fg_props.hxx>
+#include <Main/globals.hxx>
+
+#include "mini_fdm.hxx"
+
+// FreeBSD works better with this included last ... (?)
+#if defined(WIN32) && !defined(__CYGWIN__)
+#  include <windows.h>
+#else
+#  include <netinet/in.h>      // htonl() ntohl()
+#endif
+
+
+// The function htond is defined this way due to the way some
+// processors and OSes treat floating point values.  Some will raise
+// an exception whenever a "bad" floating point value is loaded into a
+// floating point register.  Solaris is notorious for this, but then
+// so is LynxOS on the PowerPC.  By translating the data in place,
+// there is no need to load a FP register with the "corruped" floating
+// point value.  By doing the BIG_ENDIAN test, I can optimize the
+// routine for big-endian processors so it can be as efficient as
+// possible
+static void htond (double &x)  
+{
+    if ( sgIsLittleEndian() ) {
+        int    *Double_Overlay;
+        int     Holding_Buffer;
+    
+        Double_Overlay = (int *) &x;
+        Holding_Buffer = Double_Overlay [0];
+    
+        Double_Overlay [0] = htonl (Double_Overlay [1]);
+        Double_Overlay [1] = htonl (Holding_Buffer);
+    } else {
+        return;
+    }
+}
+
+
+FGMiniFDM::FGMiniFDM() {
+}
+
+FGMiniFDM::~FGMiniFDM() {
+}
+
+
+// open hailing frequencies
+bool FGMiniFDM::open() {
+    if ( is_enabled() ) {
+       SG_LOG( SG_IO, SG_ALERT, "This shouldn't happen, but the channel " 
+               << "is already in use, ignoring" );
+       return false;
+    }
+
+    SGIOChannel *io = get_io_channel();
+
+    if ( ! io->open( get_direction() ) ) {
+       SG_LOG( SG_IO, SG_ALERT, "Error opening channel communication layer." );
+       return false;
+    }
+
+    set_enabled( true );
+
+    cur_fdm_state->_set_Sea_level_radius( SG_EQUATORIAL_RADIUS_FT );
+    return true;
+}
+
+
+void FGProps2NetMiniFDM( FGNetMiniFDM *net ) {
+    int i;
+
+    // Version sanity checking
+    net->version = FG_NET_FDM_MINI_VERSION;
+
+    // Aero parameters
+    net->longitude = cur_fdm_state->get_Longitude();
+    net->latitude = cur_fdm_state->get_Latitude();
+    net->altitude = cur_fdm_state->get_Altitude() * SG_FEET_TO_METER;
+    net->phi = cur_fdm_state->get_Phi();
+    net->theta = cur_fdm_state->get_Theta();
+    net->psi = cur_fdm_state->get_Psi();
+
+    // Consumables
+    net->num_tanks = FGNetMiniFDM::FG_MAX_TANKS;
+    for ( i = 0; i < net->num_tanks; ++i ) {
+        SGPropertyNode *node = fgGetNode("/consumables/fuel/tank", i, true);
+        net->fuel_quantity[i] = node->getDoubleValue("level-gal_us");
+    }
+
+    // the following really aren't used in this context
+    net->cur_time = globals->get_time_params()->get_cur_time();
+    net->warp = globals->get_warp();
+
+    // Convert the net buffer to network format
+    net->version = htonl(net->version);
+
+    htond(net->longitude);
+    htond(net->latitude);
+    htond(net->altitude);
+    htond(net->phi);
+    htond(net->theta);
+    htond(net->psi);
+
+    for ( i = 0; i < net->num_tanks; ++i ) {
+        htond(net->fuel_quantity[i]);
+    }
+    net->num_tanks = htonl(net->num_tanks);
+
+    net->cur_time = htonl( net->cur_time );
+    net->warp = htonl( net->warp );
+}
+
+
+void FGNetMiniFDM2Props( FGNetMiniFDM *net ) {
+    int i;
+
+    // Convert to the net buffer from network format
+    net->version = ntohl(net->version);
+
+    htond(net->longitude);
+    htond(net->latitude);
+    htond(net->altitude);
+    htond(net->phi);
+    htond(net->theta);
+    htond(net->psi);
+
+    net->num_tanks = htonl(net->num_tanks);
+    for ( i = 0; i < net->num_tanks; ++i ) {
+       htond(net->fuel_quantity[i]);
+    }
+
+    net->cur_time = ntohl(net->cur_time);
+    net->warp = ntohl(net->warp);
+
+    if ( net->version == FG_NET_FDM_MINI_VERSION ) {
+        // cout << "pos = " << net->longitude << " " << net->latitude << endl;
+        // cout << "sea level rad = " << cur_fdm_state->get_Sea_level_radius()
+       //      << endl;
+        cur_fdm_state->_updateGeodeticPosition( net->latitude,
+                                                net->longitude,
+                                                net->altitude
+                                                  * SG_METER_TO_FEET );
+        cur_fdm_state->_set_Euler_Angles( net->phi,
+                                          net->theta,
+                                          net->psi );
+
+       for (i = 0; i < net->num_tanks; ++i ) {
+           SGPropertyNode * node
+               = fgGetNode("/consumables/fuel/tank", i, true);
+           node->setDoubleValue("level-gal_us", net->fuel_quantity[i] );
+       }
+
+       if ( net->cur_time ) {
+           fgSetLong("/sim/time/cur-time-override", net->cur_time);
+       }
+
+        globals->set_warp( net->warp );
+    } else {
+       SG_LOG( SG_IO, SG_ALERT,
+                "Error: version mismatch in FGNetMiniFDM2Props()" );
+       SG_LOG( SG_IO, SG_ALERT,
+               "\tread " << net->version << " need " << FG_NET_FDM_MINI_VERSION );
+       SG_LOG( SG_IO, SG_ALERT,
+               "\tNeed to upgrade net_fdm.hxx and recompile." );
+    }
+}
+
+
+// process work for this port
+bool FGMiniFDM::process() {
+    SGIOChannel *io = get_io_channel();
+    int length = sizeof(buf);
+
+    if ( get_direction() == SG_IO_OUT ) {
+       // cout << "size of cur_fdm_state = " << length << endl;
+       FGProps2NetMiniFDM( &buf );
+       if ( ! io->write( (char *)(& buf), length ) ) {
+           SG_LOG( SG_IO, SG_ALERT, "Error writing data." );
+           return false;
+       }
+    } else if ( get_direction() == SG_IO_IN ) {
+       if ( io->get_type() == sgFileType ) {
+           if ( io->read( (char *)(& buf), length ) == length ) {
+               SG_LOG( SG_IO, SG_DEBUG, "Success reading data." );
+               FGNetMiniFDM2Props( &buf );
+           }
+       } else {
+           while ( io->read( (char *)(& buf), length ) == length ) {
+               SG_LOG( SG_IO, SG_DEBUG, "Success reading data." );
+               FGNetMiniFDM2Props( &buf );
+           }
+       }
+    }
+
+    return true;
+}
+
+
+// close the channel
+bool FGMiniFDM::close() {
+    SGIOChannel *io = get_io_channel();
+
+    set_enabled( false );
+
+    if ( ! io->close() ) {
+       return false;
+    }
+
+    return true;
+}
diff --git a/src/Network/mini_fdm.hxx b/src/Network/mini_fdm.hxx
new file mode 100644 (file)
index 0000000..aa110c5
--- /dev/null
@@ -0,0 +1,68 @@
+// mini_fdm.hxx -- FGFS "mini" flight dynamics protocal class
+//
+// Written by Curtis Olson, started January 2002.
+//
+// Copyright (C) 2002  Curtis L. Olson - curt@flightgear.org
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of the
+// License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+//
+// $Id$
+
+
+#ifndef _FG_MINI_FDM_HXX
+#define _FG_MINI_FDM_HXX
+
+
+#include <simgear/compiler.h>
+
+#include <FDM/flight.hxx>
+
+#include "protocol.hxx"
+#include "net_fdm_mini.hxx"
+
+
+class FGMiniFDM : public FGProtocol, public FGInterface {
+
+    FGNetMiniFDM buf;
+    int length;
+
+public:
+
+    FGMiniFDM();
+    ~FGMiniFDM();
+
+    // open hailing frequencies
+    bool open();
+
+    // process work for this port
+    bool process();
+
+    // close the channel
+    bool close();
+};
+
+
+// Helper functions which may be useful outside this class
+
+// Populate the FGNetMiniFDM structure from the property tree.
+void FGProps2NetMiniFDM( FGNetMiniFDM *net );
+
+// Update the property tree from the FGNetMiniFDM structure.
+void FGNetMiniFDM2Props( FGNetMiniFDM *net );
+
+
+#endif // _FG_MINI_FDM_HXX
+
+
diff --git a/src/Network/native_fdm_mini.cxx b/src/Network/native_fdm_mini.cxx
deleted file mode 100644 (file)
index 3375df8..0000000
+++ /dev/null
@@ -1,244 +0,0 @@
-// native_fdm.cxx -- FGFS "Native" flight dynamics protocal class
-//
-// Written by Curtis Olson, started September 2001.
-//
-// Copyright (C) 2001  Curtis L. Olson - curt@flightgear.org
-//
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License as
-// published by the Free Software Foundation; either version 2 of the
-// License, or (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-// General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-//
-// $Id$
-
-
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
-
-#include <simgear/debug/logstream.hxx>
-#include <simgear/io/lowlevel.hxx> // endian tests
-#include <simgear/io/iochannel.hxx>
-#include <simgear/timing/sg_time.hxx>
-
-#include <FDM/flight.hxx>
-#include <Time/tmp.hxx>
-#include <Main/fg_props.hxx>
-#include <Main/globals.hxx>
-
-#include "native_fdm_mini.hxx"
-
-// FreeBSD works better with this included last ... (?)
-#if defined(WIN32) && !defined(__CYGWIN__)
-#  include <windows.h>
-#else
-#  include <netinet/in.h>      // htonl() ntohl()
-#endif
-
-
-// The function htond is defined this way due to the way some
-// processors and OSes treat floating point values.  Some will raise
-// an exception whenever a "bad" floating point value is loaded into a
-// floating point register.  Solaris is notorious for this, but then
-// so is LynxOS on the PowerPC.  By translating the data in place,
-// there is no need to load a FP register with the "corruped" floating
-// point value.  By doing the BIG_ENDIAN test, I can optimize the
-// routine for big-endian processors so it can be as efficient as
-// possible
-static void htond (double &x)  
-{
-    if ( sgIsLittleEndian() ) {
-        int    *Double_Overlay;
-        int     Holding_Buffer;
-    
-        Double_Overlay = (int *) &x;
-        Holding_Buffer = Double_Overlay [0];
-    
-        Double_Overlay [0] = htonl (Double_Overlay [1]);
-        Double_Overlay [1] = htonl (Holding_Buffer);
-    } else {
-        return;
-    }
-}
-
-
-FGNativeFDMmini::FGNativeFDMmini() {
-}
-
-FGNativeFDMmini::~FGNativeFDMmini() {
-}
-
-
-// open hailing frequencies
-bool FGNativeFDMmini::open() {
-    if ( is_enabled() ) {
-       SG_LOG( SG_IO, SG_ALERT, "This shouldn't happen, but the channel " 
-               << "is already in use, ignoring" );
-       return false;
-    }
-
-    SGIOChannel *io = get_io_channel();
-
-    if ( ! io->open( get_direction() ) ) {
-       SG_LOG( SG_IO, SG_ALERT, "Error opening channel communication layer." );
-       return false;
-    }
-
-    set_enabled( true );
-
-    cur_fdm_state->_set_Sea_level_radius( SG_EQUATORIAL_RADIUS_FT );
-    return true;
-}
-
-
-void FGProps2NetFDMmini( FGNetFDMmini *net ) {
-    int i;
-
-    // Version sanity checking
-    net->version = FG_NET_FDM_MINI_VERSION;
-
-    // Aero parameters
-    net->longitude = cur_fdm_state->get_Longitude();
-    net->latitude = cur_fdm_state->get_Latitude();
-    net->altitude = cur_fdm_state->get_Altitude() * SG_FEET_TO_METER;
-    net->phi = cur_fdm_state->get_Phi();
-    net->theta = cur_fdm_state->get_Theta();
-    net->psi = cur_fdm_state->get_Psi();
-
-    // Consumables
-    net->num_tanks = FGNetFDMmini::FG_MAX_TANKS;
-    for ( i = 0; i < net->num_tanks; ++i ) {
-        SGPropertyNode *node = fgGetNode("/consumables/fuel/tank", i, true);
-        net->fuel_quantity[i] = node->getDoubleValue("level-gal_us");
-    }
-
-    // the following really aren't used in this context
-    net->cur_time = globals->get_time_params()->get_cur_time();
-    net->warp = globals->get_warp();
-
-    // Convert the net buffer to network format
-    net->version = htonl(net->version);
-
-    htond(net->longitude);
-    htond(net->latitude);
-    htond(net->altitude);
-    htond(net->phi);
-    htond(net->theta);
-    htond(net->psi);
-
-    for ( i = 0; i < net->num_tanks; ++i ) {
-        htond(net->fuel_quantity[i]);
-    }
-    net->num_tanks = htonl(net->num_tanks);
-
-    net->cur_time = htonl( net->cur_time );
-    net->warp = htonl( net->warp );
-}
-
-
-void FGNetFDMmini2Props( FGNetFDMmini *net ) {
-    int i;
-
-    // Convert to the net buffer from network format
-    net->version = ntohl(net->version);
-
-    htond(net->longitude);
-    htond(net->latitude);
-    htond(net->altitude);
-    htond(net->phi);
-    htond(net->theta);
-    htond(net->psi);
-
-    net->num_tanks = htonl(net->num_tanks);
-    for ( i = 0; i < net->num_tanks; ++i ) {
-       htond(net->fuel_quantity[i]);
-    }
-
-    net->cur_time = ntohl(net->cur_time);
-    net->warp = ntohl(net->warp);
-
-    if ( net->version == FG_NET_FDM_MINI_VERSION ) {
-        // cout << "pos = " << net->longitude << " " << net->latitude << endl;
-        // cout << "sea level rad = " << cur_fdm_state->get_Sea_level_radius()
-       //      << endl;
-        cur_fdm_state->_updateGeodeticPosition( net->latitude,
-                                                net->longitude,
-                                                net->altitude
-                                                  * SG_METER_TO_FEET );
-        cur_fdm_state->_set_Euler_Angles( net->phi,
-                                          net->theta,
-                                          net->psi );
-
-       for (i = 0; i < net->num_tanks; ++i ) {
-           SGPropertyNode * node
-               = fgGetNode("/consumables/fuel/tank", i, true);
-           node->setDoubleValue("level-gal_us", net->fuel_quantity[i] );
-       }
-
-       if ( net->cur_time ) {
-           fgSetLong("/sim/time/cur-time-override", net->cur_time);
-       }
-
-        globals->set_warp( net->warp );
-    } else {
-       SG_LOG( SG_IO, SG_ALERT,
-                "Error: version mismatch in FGNetFDMmini2Props()" );
-       SG_LOG( SG_IO, SG_ALERT,
-               "\tread " << net->version << " need " << FG_NET_FDM_MINI_VERSION );
-       SG_LOG( SG_IO, SG_ALERT,
-               "\tNeed to upgrade net_fdm.hxx and recompile." );
-    }
-}
-
-
-// process work for this port
-bool FGNativeFDMmini::process() {
-    SGIOChannel *io = get_io_channel();
-    int length = sizeof(buf);
-
-    if ( get_direction() == SG_IO_OUT ) {
-       // cout << "size of cur_fdm_state = " << length << endl;
-       FGProps2NetFDMmini( &buf );
-       if ( ! io->write( (char *)(& buf), length ) ) {
-           SG_LOG( SG_IO, SG_ALERT, "Error writing data." );
-           return false;
-       }
-    } else if ( get_direction() == SG_IO_IN ) {
-       if ( io->get_type() == sgFileType ) {
-           if ( io->read( (char *)(& buf), length ) == length ) {
-               SG_LOG( SG_IO, SG_DEBUG, "Success reading data." );
-               FGNetFDMmini2Props( &buf );
-           }
-       } else {
-           while ( io->read( (char *)(& buf), length ) == length ) {
-               SG_LOG( SG_IO, SG_DEBUG, "Success reading data." );
-               FGNetFDMmini2Props( &buf );
-           }
-       }
-    }
-
-    return true;
-}
-
-
-// close the channel
-bool FGNativeFDMmini::close() {
-    SGIOChannel *io = get_io_channel();
-
-    set_enabled( false );
-
-    if ( ! io->close() ) {
-       return false;
-    }
-
-    return true;
-}
diff --git a/src/Network/native_fdm_mini.hxx b/src/Network/native_fdm_mini.hxx
deleted file mode 100644 (file)
index a95c172..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-// native_fdm_mini.hxx -- FGFS "Mini-Native" flight dynamics protocal class
-//
-// Written by Curtis Olson, started January 2002.
-//
-// Copyright (C) 2002  Curtis L. Olson - curt@flightgear.org
-//
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License as
-// published by the Free Software Foundation; either version 2 of the
-// License, or (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-// General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-//
-// $Id$
-
-
-#ifndef _FG_NATIVE_FDM_MINI_HXX
-#define _FG_NATIVE_FDM_MINI_HXX
-
-
-#include <simgear/compiler.h>
-
-#include <FDM/flight.hxx>
-
-#include "protocol.hxx"
-#include "net_fdm_mini.hxx"
-
-
-class FGNativeFDMmini : public FGProtocol, public FGInterface {
-
-    FGNetFDMmini buf;
-    int length;
-
-public:
-
-    FGNativeFDMmini();
-    ~FGNativeFDMmini();
-
-    // open hailing frequencies
-    bool open();
-
-    // process work for this port
-    bool process();
-
-    // close the channel
-    bool close();
-};
-
-
-// Helper functions which may be useful outside this class
-
-// Populate the FGNetFDMmini structure from the property tree.
-void FGProps2NetFDMmini( FGNetFDMmini *net );
-
-// Update the property tree from the FGNetFDMmini structure.
-void FGNetFDMmini2Props( FGNetFDMmini *net );
-
-
-#endif // _FG_NATIVE_FDM_MINI_HXX
-
-
index 1f3e1fb78731af431b30c81b3c5ee79c6b62853e..71c922a7f93c90e30401bbf2662f256ac48bf121 100644 (file)
@@ -37,7 +37,7 @@ const int FG_NET_FDM_MINI_VERSION = 1;
 // Define a structure containing the top level flight dynamics model
 // parameters
 
-class FGNetFDMmini {
+class FGNetMiniFDM {
 
 public: