us to tie the output of an arbitrary generator to the state of an arbitrary
engine.
}
volts = node->getDoubleValue("volts");
amps = node->getDoubleValue("amps");
+ rpm_src = node->getStringValue("rpm-source");
int i;
for ( i = 0; i < node->nChildren(); ++i ) {
}
}
- _rpm_node = fgGetNode("/engines/engine[0]/rpm", true);
+ _rpm_node = fgGetNode( rpm_src.c_str(), true);
}
FG_EXTERNAL = 2
};
+ string rpm_src;
int model;
double volts;
double amps;
/**
- * Model an electrical system. This is a simple system with the
- * alternator hardwired to engine[0]/rpm
- *
- * Input properties:
- *
- * /engines/engine[0]/rpm
- *
- * Output properties:
- *
+ * Model an electrical system. This is a fairly simplistic system
*
*/