FG_EXTERNAL = 2
};
+ string rpm_src;
int model;
double volts;
double amps;
switches.push_back( node );
}
+ // set all switches to the specified state
+ void set_switches( bool state );
+
bool get_state();
};
/**
- * 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
*
*/
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: