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:
parent
a62e09d72b
commit
d6527c111f
2 changed files with 6 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue