[Xastir] First Time CVS source

Curt Mills, WE7U hacker at tc.fluke.com
Thu Jul 10 17:47:07 EDT 2003


On Thu, 10 Jul 2003, Stephen West-Fisher wrote:

> How can I be sure about this? I was assuming that if Xastir knew where I
> was well enough to transmit my (moving) position, it should be happy
> with the GPS connection. If you'll tell me where in the code (like, what
> source file) it is waiting for GPS data I can take a look at it. And
> remember, it worked properly with 1.0.0.

I'll give you a few more hints:  In main.c:UpdateTime(), if it's
time to go get GPS readings again, we call dtr_all_set() which sets
DTR on all open HSP ports, then we try to snag good GPS data.

In gps.c, we call port_dtr(port,0) if we have valid data, which
drops DTR, making TNC receive active again.

It looks like there's a problem with timing yet.  We should check
whether it's time to fetch GPS, blank out the GPS strings if so,
call dtr_all_set(1), then check whether we have valid strings yet.
If not, skip setting up the timer for the next time and check for
valid strings next time through UpdateTime().  Once valid strings
are found (use "gps_stop_now for this?), set up for the next cycle
by setting up the sec_next_gps variable.

Right now we set DTR then immediately check for valid strings,
setting up the timer for the next GPS check whether valid strings
are found or not.

-- 
Curt Mills, WE7U                    hacker_NO_SPAM_ at tc.fluke.com
Senior Methods Engineer/SysAdmin
"Lotto:    A tax on people who are bad at math!"
"Windows:  Microsoft's tax on computer illiterates!" -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir mailing list