X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FYASim%2Fyasim-test.cpp;h=5693c898a9456f6058ef05b0e567feaf9802a3ba;hb=195eadc739395dcf105075726833cafb48745fcc;hp=438d88b0230867da01a323ee8c4a8c23372e9400;hpb=df2b147ef532483bb8a4bf9448e4760a17ccb7ad;p=flightgear.git diff --git a/src/FDM/YASim/yasim-test.cpp b/src/FDM/YASim/yasim-test.cpp index 438d88b02..5693c898a 100644 --- a/src/FDM/YASim/yasim-test.cpp +++ b/src/FDM/YASim/yasim-test.cpp @@ -1,7 +1,7 @@ #include +#include #include -#include #include "FGFDM.hpp" #include "Airplane.hpp" @@ -11,6 +11,7 @@ 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; } float fgGetFloat (const char * name, float defaultValue) { return 0; } @@ -45,7 +46,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());