Shop OBEX P1 Docs P2 Docs Learn Events
somone help plz! — Parallax Forums

somone help plz!

Van DesselVan Dessel Posts: 15
edited 2010-01-18 04:11 in Propeller 1
Ok, i'm at the verge of insanity!! I wrote a few posts asking how to get my pmb-248 gps to work propely which it finally did. I was able to get Degrees and Minutes onto a flash drive with a·parallax datalogger however I can't get my coordinates down to seconds! I've searched the forums, went through google and found nothing cry.gif . Somone please help me! Its probably an obvious mistake that a only a newbie like me can make. Any help appreciacted.
USB.OpenForWrite(string("data.txt"))    'Writes to the data.txt file and records the coordinates
        USB.WriteLine(string("longitude is..."))
        
        Usb.Write(num.ToStr(atoi(gps.longitude,3),Num#DEC3))  
        USB.Write(string("."))                                      
        USB.write(num.ToStr(((atoi(gps.longitude+3,2))),Num#DEC3))        '
        Usb.Write(string("."))
        USB.write(num.ToStr((atoi(gps.longitude+5,4)),Num#DEC5))
        USB.Close(string("data.txt"))   
       

Comments

Sign In or Register to comment.