source: pacpussensors/trunk/NMEA0183/src/RATIOPLS.cpp@ 59

Last change on this file since 59 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.1 KB
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: ratiopls.cpp $
13** $Revision: 4 $
14** $Modtime: 10/10/98 2:43p $
15*/
16
17
18RATIO_AND_PULSE::RATIO_AND_PULSE()
19{
20 Empty();
21}
22
23RATIO_AND_PULSE::~RATIO_AND_PULSE()
24{
25 Empty();
26}
27
28void RATIO_AND_PULSE::Empty( void )
29{
30 SignalToNoiseRatio = 0;
31 PulseShapeECD = 0;
32}
33
34void RATIO_AND_PULSE::Parse( int first_field_number, const SENTENCE& sentence )
35{
36 SignalToNoiseRatio = sentence.Integer( first_field_number );
37 PulseShapeECD = sentence.Integer( first_field_number + 1 );
38}
39
40void RATIO_AND_PULSE::Write( SENTENCE& sentence )
41{
42 sentence += SignalToNoiseRatio;
43 sentence += PulseShapeECD;
44}
45
46const RATIO_AND_PULSE& RATIO_AND_PULSE::operator = ( const RATIO_AND_PULSE& source )
47{
48 SignalToNoiseRatio = source.SignalToNoiseRatio;
49 PulseShapeECD = source.PulseShapeECD;
50
51 return( *this );
52}
Note: See TracBrowser for help on using the repository browser.