Implementing VNAV support in FlightGear: Difference between revisions

Jump to navigation Jump to search
m
Line 250: Line 250:
<syntaxhighlight lang="diff">
<syntaxhighlight lang="diff">
diff --git a/src/models/FGInput.cpp b/src/models/FGInput.cpp
diff --git a/src/models/FGInput.cpp b/src/models/FGInput.cpp
index e189a49..3c71907 100644
index e189a49..1d1b4c4 100644
--- a/src/models/FGInput.cpp
--- a/src/models/FGInput.cpp
+++ b/src/models/FGInput.cpp
+++ b/src/models/FGInput.cpp
@@ -237,8 +237,11 @@ bool FGInput::Run(bool Holding)
@@ -234,11 +234,15 @@ bool FGInput::Run(bool Holding)
        "  hold\n"
        "  resume\n"
        "  iterate {value}\n"
+      "  test (just a test command\n"
         "  help\n"
         "  help\n"
         "  quit\n"
         "  quit\n"
Line 261: Line 265:
+      }
+      }
+      else if(command == "test") {
+      else if(command == "test") {
+              socket->Reply("Hello World from JSBSim!\n");
+              socket->Reply("Hello World from JSBSim !\n");
+      }
+      }
+        else {
+        else {

Navigation menu