That reintroduces the recently fixed division by zero bug when spin is zero...

Instead of calculating 
double factor = 0.1 / (spin * spin * spin * spin * spin * spin)

and later

heading = fgGetLowPass(_last_heading_deg, heading, dt / factor)



avoid division by calculating

double factor = 10 *  (spin * spin * spin * spin * spin * spin)

and later

heading = fgGetLowPass(_last_heading_deg, heading, dt  * factor)

That's what the Csaba fixed in version 1.4

Torsten

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to