dstylesunf
Member
- Joined
- Jan 4, 2010
- Messages
- 6
- Programming Experience
- 10+
Here is my problem I'm trying to solve:
I have a robot which via a serial connection passes the following data which I log in hyperterminal into a txt file:
+++ASP:273,THH:0,RLL:0,PCH:0,***
+++ASP:37,THH:0,RLL:60,PCH:2,***
+++ASP:27,THH:0,RLL:60,PCH:0,***
+++ASP:19,THH:0,RLL:60,PCH:0,***
!!!LAT:32259464,LON:-110823520,SPD:0.00,CRT:0.00,ALT:0,ALH:65535,CRS:0.00,BER:0,WPN:0,DST:0,BTV:4.39,RSP:0,***
I want to grab the line starting with !!! and I only need the lat and lon data. I then need to pass this information into a string and add a . after the first two numbers so the format can be accepted by any mapping software such as google earth. Once I have the lat and lon in the proper format I want to make a simple kml file to import into google earth. The above data is repeated every second from the gps module in the robot so I'll need to loop this process every second. I use vb.net framework 3.5
Thanks for any help.
I have a robot which via a serial connection passes the following data which I log in hyperterminal into a txt file:
+++ASP:273,THH:0,RLL:0,PCH:0,***
+++ASP:37,THH:0,RLL:60,PCH:2,***
+++ASP:27,THH:0,RLL:60,PCH:0,***
+++ASP:19,THH:0,RLL:60,PCH:0,***
!!!LAT:32259464,LON:-110823520,SPD:0.00,CRT:0.00,ALT:0,ALH:65535,CRS:0.00,BER:0,WPN:0,DST:0,BTV:4.39,RSP:0,***
I want to grab the line starting with !!! and I only need the lat and lon data. I then need to pass this information into a string and add a . after the first two numbers so the format can be accepted by any mapping software such as google earth. Once I have the lat and lon in the proper format I want to make a simple kml file to import into google earth. The above data is repeated every second from the gps module in the robot so I'll need to loop this process every second. I use vb.net framework 3.5
Thanks for any help.