Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Gps nmea

Status
Not open for further replies.

SwingeyP

Member
A fresh approach as suggested.

I have managed to get my GPS into NMEA mode.

I have no idea how to read the string of data?

The data looks like this .

$GPGGA,183238.0,5233.736,N,00153.799,W,1,5,1.28,00177,M,048,M,,*7B
$GPVTG,000.0,T,006.1,M,000.00,N,000.00,K*49

I want to be able to do something like this.

hserin string

for i =1 to length(string)
string_array = lookup(string(i))
next i

of course this syntax isn't valid so how do I break up the data?

Regards - Paul
 
hi Paul,
Read thru the string detecting the 'comma's as the end of each group.
Or
load the full string into an Array and use the location count/index for each group;

E
 
Hi Eric.

I'm sorry - I just don't know how to do what you suggest. - Can you give a code or syntax example please?

I've tried this but I just can't get the syntax right.

Code:
Hseropen 4800


Dim gps_array(10) As Byte
Dim gps_byte As Byte


While _true
	Hserin gps_byte  'get gps byte
	For i = 1 To 100
	gps_array(i) = LookUp(gps_byte), i
	Next i
	Lcdout ch
	Wend
End
 
Excellent thank you. I searched yahoo but couldn't find a group. That will be VERY useful - once again thank you.
 
Hi,

Is this thread still alive?

I'm trying to get started in this sort of thing.

Can you tell me which PIC chip you are using please.

Cheers, Camerart.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top