Last change
on this file since 107 was 59, checked in by DHERBOMEZ Gérald, 10 years ago |
Integration of new modules:
- GPS NMEA0183 decoder
- Span CPT Decoder
Update of:
|
File size:
618 bytes
|
Line | |
---|
1 | #include "nmea0183.h"
|
---|
2 | #pragma hdrstop
|
---|
3 |
|
---|
4 | /*
|
---|
5 | ** Author: Samuel R. Blackburn
|
---|
6 | ** Internet: sam_blackburn@pobox.com
|
---|
7 | **
|
---|
8 | ** You can use it any way you like as long as you don't try to sell it.
|
---|
9 | **
|
---|
10 | ** Copyright, 1996, Samuel R. Blackburn
|
---|
11 | **
|
---|
12 | ** $Workfile: talkerid.cpp $
|
---|
13 | ** $Revision: 4 $
|
---|
14 | ** $Modtime: 10/10/98 2:57p $
|
---|
15 | */
|
---|
16 |
|
---|
17 | QString talker_id( const QString &sentence )
|
---|
18 | {
|
---|
19 | QString return_string;
|
---|
20 |
|
---|
21 | //return_string.Empty();
|
---|
22 |
|
---|
23 | if ( sentence.length() >= 3 )
|
---|
24 | {
|
---|
25 | if ( sentence[ 0 ] == '$' )
|
---|
26 | {
|
---|
27 | return_string = sentence.mid( 1, 2 );
|
---|
28 | }
|
---|
29 | }
|
---|
30 |
|
---|
31 | return( return_string );
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.