[ gpsdrive ] No developer question, but a question about an older version of gpsdrive
Guenther Meyer
d.s.e at sordidmusic.com
Thu Nov 1 10:18:08 AKDT 2007
Am Mittwoch 31 Oktober 2007 schrieb Thomas Schönhütl:
> > Instead of different rules for cities/highways could you make a list of
> > the best time/distance-to-waypoint while at different speeds? Then we
> > could create a single new formula. i.e. it doesn't have to be linear or
> > rules based.
> >
> > Sorry it is poorly worded, I hope that makes sense.
>
> I come back to this topic, because I made some new experiences with the
> speech output.
>
> I changed the factor 0.02 in ROUTEREACH to 0.08 and 0.12 to test the
> behaviour of my slow Libretto with speechoutput.
>
> 0.08 (in definition of gpsdrive.h #define ROUTEREACH
> (0.02+10*current.groundspeed/(3600*milesconv))) seems to be quite good
> with a speed up to 50 km/h. The speechoutput will be given about 400 m
> before the next waypoint.
>
> 0.12 seems to be quite good with a speed between 50 and 100 km/h. The
> speechoutput will be given about 600 m before the next waypoint.
>
> 0.2 seems to be quite good with a speed over 100 km/h.
>
> I tried to rewrite the definition of ROUTEREACH in gpsdrive.h to
>
> #define ROUTEREACH1 (0.08+10*current.groundspeed/(3600*milesconv))
> #define ROUTEREACH2 (0.12+10*current.groundspeed/(3600*milesconv))
> #define ROUTEREACH3 (0.2+10*current.groundspeed/(3600*milesconv))
>
> and to add a line
>
> if (current.groundspeed <= 50)
>
as there is the speed already present inside the formula, shouldn't it be
changed to reflect the behaviour you need directly, instead of adding those
define and if statements?
something like const1 + const2 * current.groundspeed ... if it's linear,
something else, if not.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20071101/ad7cba72/attachment.bin
More information about the GPSdrive
mailing list