source: pacpussensors/trunk/NMEA0183/src/HEHDT.cpp@ 127

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