Julian Foad wrote:
> The original code assumed that "dt" was in milliseconds.  The variable
> name "velocity_rpms" presumably stood for "revs per millisecond".
> Your patch assumes that "dt" is in 1/120ths of a second.

I believe, although I am not authortative on this, that the "dt"
parameter specifies an integer number of iterations to perform, and
not a time value per se.  Under normal usage, dt will equal one.  This
is consistent with the "multi_loop" name it sometimes goes by.

The 120 Hz update frequency (which is not frame rate dependant) is
specified in the /sim/hz property I believe.  I hard-coded it here out
of laziness.

Andy

-- 
Andrew J. Ross                NextBus Information Systems
Senior Software Engineer      Emeryville, CA
[EMAIL PROTECTED]              http://www.nextbus.com
"Men go crazy in conflagrations.  They only get better one by one."
 - Sting (misquoted)


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

Reply via email to