Hi All,
I am tring to read GPS data into a SLC 5/03 via RS232.
I am getting the data into a string but I am having trouble converting into somthing that makes sense.
This what I am getting in my string:
\80\F8\F8\80\80\E0\E0\80\80\80\F8\80\80\E0\80\80\E0\80\80\80\80\F8\80\80\80\80\80\E0\80\F8\80\80\F8\80\80\80\80\80\E0\F8\E0\80\80\80\80\E0\80\E0\80\80\80\80\E0\80\E0\80\E0\80\80\F8\80\80\80\80\E0\80\80\F8\F8\80\80\E0\80\E0\80\E0\E0\F8\80\E0\80\FE
I have tried the "ACI" instruction (String to Integer), but there is text in the data that I need, so an integer will not work.
I can get the data with HyperTerminal & it seems to work just fine. It automatically converts it into somthing I can make sense of.
This it what I see in HyperTerminal:
$GPRMC,171855,A,4407.9810,N,12310.6126,W,000.0,7,160310,017.1,E*68
How can I convert the string data into something I can use?
Any help is appreciated, thanks in adavance.
I am tring to read GPS data into a SLC 5/03 via RS232.
I am getting the data into a string but I am having trouble converting into somthing that makes sense.
This what I am getting in my string:
\80\F8\F8\80\80\E0\E0\80\80\80\F8\80\80\E0\80\80\E0\80\80\80\80\F8\80\80\80\80\80\E0\80\F8\80\80\F8\80\80\80\80\80\E0\F8\E0\80\80\80\80\E0\80\E0\80\80\80\80\E0\80\E0\80\E0\80\80\F8\80\80\80\80\E0\80\80\F8\F8\80\80\E0\80\E0\80\E0\E0\F8\80\E0\80\FE
I have tried the "ACI" instruction (String to Integer), but there is text in the data that I need, so an integer will not work.
I can get the data with HyperTerminal & it seems to work just fine. It automatically converts it into somthing I can make sense of.
This it what I see in HyperTerminal:
$GPRMC,171855,A,4407.9810,N,12310.6126,W,000.0,7,160310,017.1,E*68
How can I convert the string data into something I can use?
Any help is appreciated, thanks in adavance.