Last change
on this file since 80 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:
1.5 KB
|
Rev | Line | |
---|
[59] | 1 | #include "STDPOS.hpp"
|
---|
| 2 | //#pragma hdrstop
|
---|
| 3 |
|
---|
| 4 | /*
|
---|
| 5 | ** Author: O. Le Marchand
|
---|
| 6 |
|
---|
| 7 | **
|
---|
| 8 | ** You can use it any way you like as long as you don't try to sell it.
|
---|
| 9 | **
|
---|
| 10 |
|
---|
| 11 | **
|
---|
| 12 | ** $Workfile: STDPOS.cpp $
|
---|
| 13 | ** $Revision: 6 $
|
---|
| 14 | ** $Modtime: 14/10/08 $
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | STDPOS::STDPOS()
|
---|
| 20 | {
|
---|
| 21 | Mnemonic = "STDPOS";
|
---|
| 22 | Empty();
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | STDPOS::~STDPOS()
|
---|
| 26 | {
|
---|
| 27 | //Mnemonic.Empty();
|
---|
| 28 | Empty();
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | void STDPOS::Empty( void )
|
---|
| 32 | {
|
---|
| 33 |
|
---|
| 34 | stdLat = 0.0;
|
---|
| 35 | stdLong = 0.0;
|
---|
| 36 | stdAlt = 0.0;
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | BOOL STDPOS::Parse( const SENTENCE& sentence )
|
---|
| 40 | {
|
---|
| 41 | /*
|
---|
| 42 | ** STDPOS - standard deviation on the position
|
---|
| 43 | **
|
---|
| 44 | ** 1 2 3
|
---|
| 45 | ** | | |
|
---|
| 46 | ** $STDPOS,x.xx,y.yy,z.zz*hh<CR><LF>
|
---|
| 47 | **
|
---|
| 48 | ** Field Number:
|
---|
| 49 | ** 1) x.xx is the latitude std dev
|
---|
| 50 | 2) y.yy is the longitude std dev
|
---|
| 51 | 3) is the altitude std dev
|
---|
| 52 |
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | */
|
---|
| 56 |
|
---|
| 57 | stdLat = sentence.Double( 1 );
|
---|
| 58 | stdLong = sentence.Double( 2 );
|
---|
| 59 | stdAlt = sentence.Double( 3 );
|
---|
| 60 |
|
---|
| 61 | return( TRUE );
|
---|
| 62 | }
|
---|
| 63 |
|
---|
| 64 | QString STDPOS::PlainEnglish( void ) const
|
---|
| 65 | {
|
---|
| 66 | QString return_string;
|
---|
| 67 |
|
---|
| 68 | return_string = "not yet available ";
|
---|
| 69 |
|
---|
| 70 | return( return_string );
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 | BOOL STDPOS::Write( SENTENCE& sentence )
|
---|
| 74 | {
|
---|
| 75 | /*
|
---|
| 76 | ** Let the parent do its thing
|
---|
| 77 | */
|
---|
| 78 |
|
---|
| 79 | RESPONSE::Write( sentence );
|
---|
| 80 |
|
---|
| 81 | sentence += stdLat;
|
---|
| 82 | sentence += stdLong;
|
---|
| 83 | sentence += stdAlt;
|
---|
| 84 |
|
---|
| 85 | sentence.Finish();
|
---|
| 86 |
|
---|
| 87 | return( TRUE );
|
---|
| 88 | }
|
---|
| 89 |
|
---|
| 90 | const STDPOS& STDPOS::operator = ( const STDPOS& source )
|
---|
| 91 | {
|
---|
| 92 | stdLat = source.stdLat;
|
---|
| 93 | stdLong = source.stdLong;
|
---|
| 94 | stdAlt = source.stdAlt;
|
---|
| 95 |
|
---|
| 96 | return( *this );
|
---|
| 97 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.