Hi Roy,

I am re-posting this since I am unclear what to do to make your cleaned
up kap140.nas altAlert work.


> On Mon, 2007-01-15 at 21:43 +0100, Dave Perry wrote:
> 
> 
> Thanks, replacing these fixed the "all annunciators lit" issue and the
> buttons now work.
> 
> > I believe the c172p is using the generic-instrumentation.xml
> > instrumentation 
> > config file, so it should have a working encoder. 
> > Is /instrumentation/encoder/serviceable set to true?
> 
> No, with the c172p sitting on the runway, the
> three /instrumentation/encoder/properties  = "(none)
> 

It appears that /instrumentation/encoder/serviceable still has value
(none).

Everything in the new kap140 is working except the altAlert. It causes a
nil in numeric context error on the altDifference line because altFt is
nil since /instrumentation/encoder/pressure-alt-ft = "(none).

  altFt = getprop(encoder, "pressure-alt-ft");
  #print(altFt);
  altDifference = abs(altPreselect - altFt);

This even in the case of the c172p as well as in my edited version that
checks for autopilot power.

Is the new kap140 working for the c172p for you?  What do I need to do
to get the encoder initialized?

Kind regards,
 
-- 
Dave Perry 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to