Datalogging with GPS
Casey Gross
Posts: 14
I have made the GPS give me my position but so far i have not been able to write those coordinates to the bs2.
example of received coordinates\/ \/ \/ \/
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
I·need the stamp to save these coordinates for later use.
Any help is appreciated.
example of received coordinates\/ \/ \/ \/
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
3251.7702 N 9649.2256 W
I·need the stamp to save these coordinates for later use.
Any help is appreciated.
Comments
Reminds me of a quote: "Fortune helps him who is willing to help himself."
25 bytes is about all the variable storage that a BS2 has. Where are you storing the data in the Stamp?
www.google.com/search?hl=en&rlz=1C1GGLS_enUS316US316&q=GPS+Basic+Stamp+site:forums.parallax.com&aq=f&oq=&aqi=
but the coordinates the gps gives me are: 32 51.7702 N. Why is it storing the wrong coordinates?
' {$STAMP BS2}
' {$PBASIC 2.5}
gpstime VAR Word
N VAR Word
W VAR Word
NN VAR Word
WW VAR Word
speed1 VAR Word
speed2 VAR Nib
course1 VAR Word
course2 VAR Nib
address VAR Word
n4800 CON 16572
main:
SERIN 15,n4800,[noparse][[/noparse]WAIT("RMC,"),DEC gpstime, SKIP 3, DEC N, DEC NN, SKIP 3, DEC W, DEC WW, SKIP 3, DEC speed1, DEC speed2, DEC course1,DEC course2]
WRITE 0, N, NN
READ 0, N, NN
DEBUG DEC N/100," ",DEC N//100,".", DEC4 NN," N "
One last comment. Your code will be much easier to read if you choose meaningful variable names, instead of one or two letters.