]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/yasim-test.cpp
MSVC (warning) fixes.
[flightgear.git] / src / FDM / YASim / yasim-test.cpp
index 438d88b0230867da01a323ee8c4a8c23372e9400..7f578b6a9665063f4320bbb9009e15b454398db1 100644 (file)
@@ -1,7 +1,7 @@
 #include <stdio.h>
 
+#include <simgear/props/props.hxx>
 #include <simgear/xml/easyxml.hxx>
-#include <simgear/misc/props.hxx>
 
 #include "FGFDM.hpp"
 #include "Airplane.hpp"
@@ -11,8 +11,12 @@ using namespace yasim;
 // Stubs.  Not needed by a batch program, but required to link.
 bool fgSetFloat (const char * name, float val) { return false; }
 bool fgSetBool(char const * name, bool val) { return false; }
+bool fgGetBool(char const * name, bool def) { return false; }
 SGPropertyNode* fgGetNode (const char * path, bool create) { return 0; }
+SGPropertyNode* fgGetNode (const char * path, int i, bool create) { return 0; }
 float fgGetFloat (const char * name, float defaultValue) { return 0; }
+float fgGetDouble (const char * name, double defaultValue) { return 0; }
+float fgSetDouble (const char * name, double defaultValue) { return 0; }
 
 static const float RAD2DEG = 57.2957795131;
 
@@ -45,7 +49,7 @@ int main(int argc, char** argv)
     printf("       Cruise AoA: %f\n", aoa);
     printf("   Tail Incidence: %f\n", tail);
     printf("Approach Elevator: %f\n", a->getApproachElevator());
-    printf("               CG: %.1f, %.1f, %.1f\n", cg[0], cg[1], cg[2]);
+    printf("               CG: %.3f, %.3f, %.3f\n", cg[0], cg[1], cg[2]);
 
     if(a->getFailureMsg())
         printf("SOLUTION FAILURE: %s\n", a->getFailureMsg());