Jon S Berndt writes:

 > Since the idea is to generalize this, I need to know only 
 > if a switch has "completed the circuit" (true), or not 
 > (false). Or, in the case of a situation where the specific 
 > aircraft in question has an autopilot rotary switch and 
 > can select (for example) OFF, Altitude, Attitude Hold, or 
 > whatever, then I would need to know which of the settings 
 > is currently selected. It seems to me that the simplest 
 > thing for generic code to parse is 0, 1, 2.

Right, but a different model of autopilot might have separate switches
for each function (such as a separate on/off switch).  Using booleans
makes your code much more generally useful.


All the best,


David

-- 
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to