Going on with the timer stuff.
I had been playing with the ktl qtimer and i see that qtimer does not call
simulator step every 1ms... indeed it does every aprox. 4ms, and not very
accurate or regular; that's why i have a 4s period for a 1Hz ecclock-input.

The only way i found to have regular and accurate periods is sarting qtimer
at 10ms and setting maxSteps according to this:

simulator.cpp __________________________________________________

stepTimer->start(10);

const unsigned maxSteps = unsigned(LINEAR_UPDATE_RATE / 100);
______________________________________________________________

This way i have clock input and pic running at real time.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Ktechlab-devel mailing list
Ktechlab-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ktechlab-devel

Reply via email to