#include "Airplane.hpp"
using namespace yasim;
+using std::string;
// Stubs. Not needed by a batch program, but required to link.
bool fgSetFloat (const char * name, float val) { return false; }
// numbers: "aoa lift drag LD" (aoa in degrees, lift and drag in
// G's). You can use this in gnuplot like so (assuming the output is
// in a file named "dat":
-//
-// plot "dat" using 1:2 with lines title 'lift', \
-// "dat" using 1:3 with lines title 'drag', \
-// "dat" using 1:4 with lines title 'LD'
-//
+/*
+ plot "dat" using 1:2 with lines title 'lift', \
+ "dat" using 1:3 with lines title 'drag', \
+ "dat" using 1:4 with lines title 'LD'
+*/
void yasim_graph(Airplane* a, float alt, float kts)
{
Model* m = a->getModel();
readXML(file, *fdm);
} catch (const sg_exception &e) {
printf("XML parse error: %s (%s)\n",
- e.getFormattedMessage().c_str(), e.getOrigin().c_str());
+ e.getFormattedMessage().c_str(), e.getOrigin());
}
// ... and run