--- AnyEvent-GPSD/GPSD.pm 2008/07/02 05:17:37 1.2 +++ AnyEvent-GPSD/GPSD.pm 2008/07/02 05:21:58 1.3 @@ -90,9 +90,11 @@ minimum value for a good fix). C contains either C<1> to indicate that this satellite was used for -the last position fix, C<0> otherwise. EGNOS/WAAS etc. satellites will +the last position fix, C<0> otherwise. EGNOS/WAAS etc. satellites will always show as C<0>, even if their correction info was used. +The passed hash references are read-only. + =item on_fix => $cb->({point}) Called regularly (usually about once/second), even when there is no @@ -318,15 +320,16 @@ want more frequent updates, but not very useful to store, as the next fix might well be totally off. -If the fix is older then C<$max_seconds> (default: C<1.9>) or if no fix is -available, returns the empty list. +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) = @_; - $max ||= 1.9 unless defined $max; + $max ||= 1.9 * $self->{interval} unless defined $max; my $geo = $self->{geo_forward} ||= new Geo::Forward;