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:
1.6 KB
|
Line | |
---|
1 | #include "STDHRP.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: STDHRP.cpp $
|
---|
13 | ** $Revision: 6 $
|
---|
14 | ** $Modtime: 14/10/08 $
|
---|
15 | */
|
---|
16 |
|
---|
17 |
|
---|
18 |
|
---|
19 | STDHRP::STDHRP()
|
---|
20 | {
|
---|
21 | Mnemonic = "STDHRP";
|
---|
22 | Empty();
|
---|
23 | }
|
---|
24 |
|
---|
25 | STDHRP::~STDHRP()
|
---|
26 | {
|
---|
27 | //Mnemonic.Empty();
|
---|
28 | Empty();
|
---|
29 | }
|
---|
30 |
|
---|
31 | void STDHRP::Empty( void )
|
---|
32 | {
|
---|
33 |
|
---|
34 | stdHeading = 0.0;
|
---|
35 | stdRoll = 0.0;
|
---|
36 | stdPitch = 0.0;
|
---|
37 | }
|
---|
38 |
|
---|
39 | BOOL STDHRP::Parse( const SENTENCE& sentence )
|
---|
40 | {
|
---|
41 | /*
|
---|
42 | ** STDHRP - Global Positioning System Fix Data
|
---|
43 | ** Time, Position and fix related data fora GPS receiver.
|
---|
44 | **
|
---|
45 | ** 1 2 3
|
---|
46 | ** | | |
|
---|
47 | ** $STDHRP,x.xxx,y.yyy,z.zzz*hh<CR><LF>
|
---|
48 | **
|
---|
49 | ** Field Number:
|
---|
50 | ** 1) x.xxx is the heading std dev
|
---|
51 | 2) y.yyy is the roll std dev
|
---|
52 | 3) z.zzz is the pitch std dev
|
---|
53 |
|
---|
54 |
|
---|
55 |
|
---|
56 | */
|
---|
57 |
|
---|
58 | stdHeading = sentence.Double( 1 );
|
---|
59 | stdRoll = sentence.Double( 1 );
|
---|
60 | stdPitch = sentence.Double( 1 );
|
---|
61 |
|
---|
62 | return( TRUE );
|
---|
63 | }
|
---|
64 |
|
---|
65 | QString STDHRP::PlainEnglish( void ) const
|
---|
66 | {
|
---|
67 | QString return_string;
|
---|
68 |
|
---|
69 | return_string = "not yet available ";
|
---|
70 |
|
---|
71 | return( return_string );
|
---|
72 | }
|
---|
73 |
|
---|
74 | BOOL STDHRP::Write( SENTENCE& sentence )
|
---|
75 | {
|
---|
76 | /*
|
---|
77 | ** Let the parent do its thing
|
---|
78 | */
|
---|
79 |
|
---|
80 | RESPONSE::Write( sentence );
|
---|
81 |
|
---|
82 | sentence += stdHeading;
|
---|
83 | sentence += stdRoll;
|
---|
84 | sentence += stdPitch;
|
---|
85 |
|
---|
86 | sentence.Finish();
|
---|
87 |
|
---|
88 | return( TRUE );
|
---|
89 | }
|
---|
90 |
|
---|
91 | const STDHRP& STDHRP::operator = ( const STDHRP& source )
|
---|
92 | {
|
---|
93 | stdHeading = source.stdHeading;
|
---|
94 | stdRoll = source.stdRoll;
|
---|
95 | stdPitch = source.stdPitch;
|
---|
96 |
|
---|
97 | return( *this );
|
---|
98 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.