From c05a2c2bcca890d742d9c0d79be1e4a3b3534b69 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 20 Nov 2003 19:03:09 +0000 Subject: [PATCH] Add support for specifying a tag in the output sections of the electrical system definition. --- src/Systems/electrical.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Systems/electrical.cxx b/src/Systems/electrical.cxx index 3025e056f..906ccf15a 100644 --- a/src/Systems/electrical.cxx +++ b/src/Systems/electrical.cxx @@ -118,9 +118,15 @@ FGElectricalBus::FGElectricalBus ( SGPropertyNode *node ) { FGElectricalOutput::FGElectricalOutput ( SGPropertyNode *node ) { kind = FG_OUTPUT; - output_amps = 0.1; + output_amps = 0.1; // arbitrary default value name = node->getStringValue("name"); + SGPropertyNode *draw = node->getNode("rated-draw"); + if ( draw != NULL ) { + output_amps = draw->getDoubleValue(); + } + // cout << "rated draw = " << output_amps << endl; + int i; for ( i = 0; i < node->nChildren(); ++i ) { SGPropertyNode *child = node->getChild(i); -- 2.39.5