This seems to work for me :

var FPangle = math.asin( VS/math.abs(TAS) ) * 90;


On 28/01/2010 04:28, syd adams wrote:
> Good point , I'll try the abs . That formula continuously calculates the
> flight path angle from vertical and forward speed  fpm ... I saw the error
> but hadnt figured it out yet .... didnt even think about a negative velocity
> ...
> Thanks for that tip :)
>
>
> I experience a nasal error when using the pushback or thrust reverse to
>
>   
>> get off the dock :
>>
>> Nasal runtime error: floating point error in math.sqrt()
>> at
>>
>> /home/d2r2/archives/games/flightgear/CVS/Flightgear-CVS/data/Nasal/math.nas,
>> line 12
>> called from:
>>
>> /home/d2r2/archives/games/flightgear/CVS/Flightgear-CVS/data/Aircraft/777-200/Nasal/AFDS.nas,
>> line 121
>> called from:
>>
>> /home/d2r2/archives/games/flightgear/CVS/Flightgear-CVS/data/Aircraft/777-200/Nasal/AFDS.nas,
>> line 215
>>
>> line 121 is : var FPangle = math.asin(VS/TAS) * 90;
>>
>> so I presume some value gets negative or null when making the plane go
>> backwards, the math is not happy, the script hangs, resulting in the AP
>> panel becoming unusable.
>>
>> I'm not sure what VS and TAS are, I'd be tempted to take a abs() before
>> taking asin, but I'm just guessing without knowing.
>>     


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to