Google Answers Logo
View Question
 
Q: gps ( No Answer,   1 Comment )
Question  
Subject: gps
Category: Science > Instruments and Methods
Asked by: chiporange-ga
List Price: $10.00
Posted: 02 Jul 2003 09:36 PDT
Expires: 06 Jul 2003 07:15 PDT
Question ID: 224306
I'm looking for an algorithm for converting the current date/time to
the 2 value system used by GPS of week number and time of week.

Request for Question Clarification by wonko-ga on 02 Jul 2003 11:41 PDT
Would one of these links be a sufficient answer: 
 
http://www.ngs.noaa.gov/gps-toolbox/bwr-c.txt 
 
http://www.ngs.noaa.gov/gps-toolbox/bwr-f.txt 
 
Accessed from "The GPS Toolbox":  http://www.ngs.noaa.gov/gps-toolbox/index.html 
 
Thanks! 

Wonko

Clarification of Question by chiporange-ga on 02 Jul 2003 14:37 PDT
No, I'm sorry, but an uncommented code fragment with no explanation
(and I'm afraid, in a computer language that I don't know) won't help
me.  I really need a textual description, or perhaps a code fragment
with sufficient documentation so that I could follow what was going
on.  These fragments also have no provision for converting local time
to UTC time, which is necessary as part of the solution.

Clarification of Question by chiporange-ga on 03 Jul 2003 05:15 PDT
I need to send an initialization string to a SiRFStar GPS receiver
using the $PSRF104 NMEA command; I *believe* I need, for this
initialization, the current time express as "time of week" and "week
number" (terms meaningful to GPS).  I *believe* that this means first,
translating local time into UTC, then, translating UTC into the date
into the number of weeks since Aug 22, 1999, and the number of seconds
elapsed in the current week (and then the correction for leap seconds
added to the result).  I *need* these assumptions confirmed as much as
I need the algorithm itself.

I need the question answered as to whether I should add the 1024 value
to the week number to compensate for the week number roll-over that
occurred on August 22, 1999, since the original epock was from Jan 6,
1980.
I'm working in Visual FoxPro, but any sufficiently commented code
fragment that looks anything like VB should do (assuming it doesn't
make use of language features not available in other programming
languages (such as a handy-dandy time/date conversion function for the
UTC conversion).
Answer  
There is no answer at this time.

Comments  
Subject: Re: gps
From: eek-ga on 02 Jul 2003 18:28 PDT
 
Do you simply want an algorithm for handling the required date
arithmetic?  I.e., the number of days, months, years since January 1,
1901 or January 6, 1980.

Other than this portion, the algorithm would be very simple.  Is there
a programming language that you do understand that you would want the
algorithm written in?

I am not a researcher, so I'll give Wonko (and others) a chance to
respond first.
Bradley

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy