Speed is always calculated with a fix 50msec
the time between consecutive calls of calculateTrip() doesn't have to be 50msec
it is >= to 50 msec
if((currentMillis - previous_millis_high) >= hi_speed_cycle) // 20 Hz
(Executed every 50ms)
so add parameter to calculateTrip(deltatime) and give it (currentMillis -
previous_millis_high) the speed calculations become more stable.
DB,
Original issue reported on code.google.com by Dirty8a...@gmail.com on 25 Mar 2015 at 3:47
Original issue reported on code.google.com by
Dirty8a...@gmail.com
on 25 Mar 2015 at 3:47