On 2 Jan 2009, at 13:26, Anders Gidenstam wrote:

> Could we find more descriptive property names for these voltage/ 
> potential
> difference properties? Just to make it clear what they are (and avoid
> confusion with potential future properties, e.g. for current, charge  
> or
> power).

Good point.

I'm hopeful that adding a simple current-draw model will be  
'easy' (for a given value of easy, naturally) if we start  
standardising such things, so it'd be great to think about this now,  
before people start using new property names.

systems/electrial.cxx would be a good starting point for this - it's  
simplistic right now, but a few more component types (especially a  
fuse)[1], and a Nasal interface to allow the electrical system to be  
controller trivially by an aircraft designer, and it'd be pretty  
respectable. FGElectricalOutput is pretty close to my proposed base  
class for electrically powered instruments - it needs some extension,  
but it makes sense to aggregate (in the C++ sense) that functionality  
into instruments.

James

[1] - whoops, FGElectricalSwitch provides a circuit-breaker function.  
Once again proving that for everything you might want to do, FG  
already contains code for it, you just need to find the code :)

------------------------------------------------------------------------------
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to