// of body state vs. the environment can happen here (crashes,
// etc...).
virtual void newState(State* state) = 0;
+
+ virtual ~BodyEnvironment() {} // #!$!?! gcc warning...
};
}; // namespace yasim
virtual float getTorque() = 0;
virtual float getFuelFlow() = 0;
+ virtual ~Engine() {}
protected:
float _throttle;
bool _starter; // true=engaged, false=disengaged
int j = 0;
float f;
char b[256];
- while(j = r->getValueforFGSet(j, b, &f))
+ while((j = r->getValueforFGSet(j, b, &f)))
if(b[0]) fgSetFloat(b,f);
for(j=0; j < r->numRotorparts(); j++) {
// The arrester hook
if(_hook) {
- float v[3], rot[3], glvel[3], ground[3];
_hook->calcForce(_ground_cb, &_body, s, lv, lrot);
float force[3], contact[3];
_hook->getForce(force, contact);
// The launchbar/holdback
if(_launchbar) {
- float v[3], rot[3], glvel[3], ground[3];
_launchbar->calcForce(_ground_cb, &_body, s, lv, lrot);
float forcelb[3], contactlb[3], forcehb[3], contacthb[3];
_launchbar->getForce(forcelb, contactlb, forcehb, contacthb);
// 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', \
+// 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)