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