-
Notifications
You must be signed in to change notification settings - Fork 4
/
CycleSlip.h
83 lines (60 loc) · 2.54 KB
/
CycleSlip.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*-------------------------------------------------------------------
Purpose: Class to detect cycle slip
-------------------------------------------------------------------
Input:
Output:
-------------------------------------------------------------------
Authors: Haroldo Antonio Marques
Programa de Pos-Graduacao em Ciencias Cartograficas
FCT/UNESP - Presidente Prudente - SP
FAPESP PROCESS: 05/03522-1
Date: July of 2010
-------------------------------------------------------------------
Observation:
-------------------------------------------------------------------*/
//c::1304.13, SAH, change path, use one directory for all *.cpp/*.h files
#ifndef Cycle
#define Cycle
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <iostream>
//#include "../Include/constant.h"
#include "constant.h"
using namespace std;
using namespace std;
namespace CSLIP{
class Class_Cycle_Slip{
public:
int ICslip;
Class_Cycle_Slip(); //constructor
void Wide_Cycle_Slip(double ph1,double ph2,double ca, double p2, bool initial_epoch);
void WN_Cycle_Slip(double ph1,double ph2,double p1,double p2,bool initial_epoch);
void Start_CycleSlip();
//Get Method
double Get_wlbias(); //wide lane bias
double Get_sig_wlbias(); //RMS wide lane bias
double Get_diff_wl(); //diff betwen phase wide-lane and code wide-lane
double Get_diff_nl(); //diff betwen phase wide-lane and code wide-lane
bool Get_flag_wl(); //flag to indicate a potential cycle slip
bool Get_flag_nl(); //flag to indicate a potential cycle slip
int Get_count(); //current point in the data arc
//Set Method
void Set_wlbias(double value);
void Set_sig_wlbias(double value);
void Set_diff_wl(double value);
void Set_flag_wl(bool value);
void Set_flag_nl(bool value);
void Set_count(double value);
private:
double wlbias; //wide lane bias
double sig_wlbias; //RMS wide lane bias
double diff_wl; //diff betwen phase wide-lane and code wide-lane
double diff_nl; //diff betwen phase narrow-lane and code narrow-lane
bool flag_wl; //flag to indicate a potential cycle slip
bool flag_nl; //flag to indicate a potential cycle slip
int count; //current point in the data arc
double old_ph1, old_ph2, old_p1, old_p2;
};
}//namespace CSlip
#endif