]> git.mxchange.org Git - flightgear.git/commitdiff
Add support for passing nose wheel steering angle as a separate value
authorcurt <curt>
Mon, 24 Nov 2003 01:47:52 +0000 (01:47 +0000)
committercurt <curt>
Mon, 24 Nov 2003 01:47:52 +0000 (01:47 +0000)
(which could be different from the rudder position.)

src/Network/native_fdm.cxx
src/Network/net_fdm.hxx

index 1380feea80a88b13fc85a6b77d49a9dc3301452b..665004948a0a89415c207173350d33feaafec5d4 100644 (file)
@@ -204,6 +204,7 @@ void FGProps2NetFDM( FGNetFDM *net, bool net_byte_order ) {
     net->left_aileron = node->getDoubleValue( "left-aileron-pos-norm" );
     net->right_aileron = node->getDoubleValue( "right-aileron-pos-norm" );
     net->rudder = node->getDoubleValue( "rudder-pos-norm" );
+    net->rudder = node->getDoubleValue( "nose-wheel-pos-norm" );
     net->speedbrake = node->getDoubleValue( "speedbrake-pos-norm" );
     net->spoilers = node->getDoubleValue( "spoilers-pos-norm" );
 
@@ -270,6 +271,7 @@ void FGProps2NetFDM( FGNetFDM *net, bool net_byte_order ) {
         htonf(net->left_aileron);
         htonf(net->right_aileron);
         htonf(net->rudder);
+        htonf(net->nose_wheel);
         htonf(net->speedbrake);
         htonf(net->spoilers);
     }
@@ -342,6 +344,7 @@ void FGNetFDM2Props( FGNetFDM *net, bool net_byte_order ) {
         htonf(net->left_aileron);
         htonf(net->right_aileron);
         htonf(net->rudder);
+        htonf(net->nose_wheel);
         htonf(net->speedbrake);
         htonf(net->spoilers);
     }
@@ -440,6 +443,7 @@ void FGNetFDM2Props( FGNetFDM *net, bool net_byte_order ) {
         node->setDoubleValue("left-aileron-pos-norm", net->left_aileron);
         node->setDoubleValue("right-aileron-pos-norm", net->right_aileron);
         node->setDoubleValue("rudder-pos-norm", net->rudder);
+        node->setDoubleValue("nose-wheel-pos-norm", net->nose_wheel);
         node->setDoubleValue("speedbrake-pos-norm", net->speedbrake);
         node->setDoubleValue("spoilers-pos-norm", net->spoilers);
     } else {
index 29a7c8555152b1b4890141e6ae7df5bb0269f04a..f40e7ddf44821444b27d69e96a1fc013c814efba 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <time.h> // time_t
 
-const int FG_NET_FDM_VERSION = 14;
+const int FG_NET_FDM_VERSION = 15;
 
 
 // Define a structure containing the top level flight dynamics model
@@ -121,6 +121,7 @@ public:
     float left_aileron;
     float right_aileron;
     float rudder;
+    float nose_wheel;
     float speedbrake;
     float spoilers;
 };