]> git.mxchange.org Git - flightgear.git/commitdiff
Add support for accessing the "set-outside-air-temp-degc" function from
authorcurt <curt>
Mon, 10 Nov 2003 22:03:16 +0000 (22:03 +0000)
committercurt <curt>
Mon, 10 Nov 2003 22:03:16 +0000 (22:03 +0000)
the property/telnet interface.

src/Network/props.cxx

index 7268f6f633ddac2a6d2e3eab3a2bf5c4f657c7fb..da99da9c9c058e329261aa4ebf736c31dd4f42d1 100644 (file)
@@ -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);