connectors[i]->set_value( 0.0 );
}
- // for each supplier, propogate the electrical current
+ // for each supplier, propagate the electrical current
for ( i = 0; i < suppliers.size(); ++i ) {
// cout << " Updating: " << suppliers[i]->get_name() << endl;
- propogate( suppliers[i], 0.0, " " );
+ propagate( suppliers[i], 0.0, " " );
}
}
}
-// propogate the electrical current through the network
-void FGElectricalSystem::propogate( FGElectricalComponent *node, double val,
+// propagate the electrical current through the network
+void FGElectricalSystem::propagate( FGElectricalComponent *node, double val,
string s ) {
s += " ";
}
// cout << s << node->get_name() << " -> " << node->get_value() << endl;
- // propogate to all children
+ // propagate to all children
for ( i = 0; i < node->get_num_outputs(); ++i ) {
- propogate( node->get_output(i), current, s );
+ propagate( node->get_output(i), current, s );
}
}
virtual void update (double dt);
bool build ();
- void propogate( FGElectricalComponent *node, double val, string s = "" );
+ void propagate( FGElectricalComponent *node, double val, string s = "" );
FGElectricalComponent *find ( const string &name );
protected: