1
0
Fork 0

Add support for passing nose wheel steering angle as a separate value

(which could be different from the rudder position.)
This commit is contained in:
curt 2003-11-24 01:47:52 +00:00
parent a62e09d72b
commit d6527c111f
2 changed files with 6 additions and 1 deletions

View 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 {

View 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;
};