From: curt Date: Mon, 10 Nov 2003 22:03:16 +0000 (+0000) Subject: Add support for accessing the "set-outside-air-temp-degc" function from X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d233c0ac38f457e9104431b4ce61c6c40e03c48;p=flightgear.git Add support for accessing the "set-outside-air-temp-degc" function from the property/telnet interface. --- diff --git a/src/Network/props.cxx b/src/Network/props.cxx index 7268f6f63..da99da9c9 100644 --- a/src/Network/props.cxx +++ b/src/Network/props.cxx @@ -332,9 +332,17 @@ PropsChannel::foundTerminator() = args.getNode("subsystem", i-2, true); node->setStringValue( tokens[i].c_str() ); } + } else if ( tokens[1] == "set-outside-air-temp-degc" ) { + for ( unsigned int i = 2; i < tokens.size(); ++i ) { + cout << "props: set-oat command = " << tokens[i] + << endl; + SGPropertyNode *node + = args.getNode("temp-degc", i-2, true); + node->setStringValue( tokens[i].c_str() ); + } } else if ( tokens[1] == "timeofday" ) { for ( unsigned int i = 2; i < tokens.size(); ++i ) { - cout << "props: adding subsystem = " << tokens[i] + cout << "props: time of day command = " << tokens[i] << endl; SGPropertyNode *node = args.getNode("timeofday", i-2, true);