X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2Fnative_ctrls.cxx;h=73c9f31ea73815b0ee23d857f727ae769716e7d8;hb=5f2fff4ec45a0c20bca076d5b09c433370288f4d;hp=2ad871f834f28387b39baebd9cb1eea00661e054;hpb=85be9be1e05c76a2d5fde5086a4122f79529e015;p=flightgear.git diff --git a/src/Network/native_ctrls.cxx b/src/Network/native_ctrls.cxx index 2ad871f83..73c9f31ea 100644 --- a/src/Network/native_ctrls.cxx +++ b/src/Network/native_ctrls.cxx @@ -117,6 +117,8 @@ void FGProps2NetCtrls( FGNetCtrls *net, bool honor_freezes, net->elevator_trim = node->getDoubleValue( "elevator-trim" ); net->rudder_trim = node->getDoubleValue( "rudder-trim" ); net->flaps = node->getDoubleValue( "flaps" ); + net->speedbrake = node->getDoubleValue( "speedbrake" ); + net->spoilers = node->getDoubleValue( "spoilers" ); net->flaps_power = fgGetDouble( "/systems/electrical/outputs/flaps", 1.0 ) >= 1.0; net->flap_motor_ok = node->getBoolValue( "flaps-serviceable" ); @@ -233,6 +235,8 @@ void FGProps2NetCtrls( FGNetCtrls *net, bool honor_freezes, htond(net->elevator_trim); htond(net->rudder_trim); htond(net->flaps); + htond(net->speedbrake); + htond(net->spoilers); net->flaps_power = htonl(net->flaps_power); net->flap_motor_ok = htonl(net->flap_motor_ok); @@ -300,6 +304,8 @@ void FGNetCtrls2Props( FGNetCtrls *net, bool honor_freezes, htond(net->elevator_trim); htond(net->rudder_trim); htond(net->flaps); + htond(net->speedbrake); + htond(net->spoilers); net->flaps_power = htonl(net->flaps_power); net->flap_motor_ok = htonl(net->flap_motor_ok);