From: curt Date: Mon, 24 Nov 2003 01:47:52 +0000 (+0000) Subject: Add support for passing nose wheel steering angle as a separate value X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d6527c111fe5a789a0eaa1dc328b4e3303cc0864;p=flightgear.git Add support for passing nose wheel steering angle as a separate value (which could be different from the rudder position.) --- diff --git a/src/Network/native_fdm.cxx b/src/Network/native_fdm.cxx index 1380feea8..665004948 100644 --- a/src/Network/native_fdm.cxx +++ b/src/Network/native_fdm.cxx @@ -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 { diff --git a/src/Network/net_fdm.hxx b/src/Network/net_fdm.hxx index 29a7c8555..f40e7ddf4 100644 --- a/src/Network/net_fdm.hxx +++ b/src/Network/net_fdm.hxx @@ -32,7 +32,7 @@ #include // 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; };