AnyEvent-GPSD

 view release on metacpan or  search on metacpan

GPSD.pm  view on Meta::CPAN

}

=item ($lat, $lon) = $gps->estimate ([$max_seconds])

This returns an estimate of the current position based on the last fix and
the time passed since then.

Useful for interactive applications where you want more frequent updates,
but not very useful to store, as the next fix might well be totally
off. For example, when displaying a real-time map, you could simply call
C<estimate> ten times a second and update the cursor or map position, but
you should use C<on_fix> to actually gather data to plot the course itself.

If the fix is older then C<$max_seconds> (default: C<1.9> times the update
interval, i.e. usually C<1.9> seconds) or if no fix is available, returns
the empty list.

=cut

sub estimate {
   my ($self, $max) = @_;

README  view on Meta::CPAN


               mode         1 = no fix, 2 = 2d fix, 3 = 3d fix

    ($lat, $lon) = $gps->estimate ([$max_seconds])
        This returns an estimate of the current position based on the last
        fix and the time passed since then.

        Useful for interactive applications where you want more frequent
        updates, but not very useful to store, as the next fix might well be
        totally off. For example, when displaying a real-time map, you could
        simply call "estimate" ten times a second and update the cursor or
        map position, but you should use "on_fix" to actually gather data to
        plot the course itself.

        If the fix is older then $max_seconds (default: 1.9 times the update
        interval, i.e. usually 1.9 seconds) or if no fix is available,
        returns the empty list.

    $gps->record_log ($path)
        If $path is defined, then that file will be created or truncated and
        a log of all (raw) packets received will be written to it. This log



( run in 0.245 second using v1.01-cache-2.11-cpan-4d50c553e7e )