anwarminarso / rush-osd-development

Automatically exported from code.google.com/p/rush-osd-development
0 stars 0 forks source link

increase stability of GPS-speed #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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