gps_pvt 0.9.2 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +159 -3
- data/README.md +1 -1
- data/Rakefile +7 -0
- data/ext/gps_pvt/Coordinate/Coordinate_wrap.cxx +84 -38
- data/ext/gps_pvt/GPS/GPS_wrap.cxx +616 -4120
- data/ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx +5320 -3913
- data/ext/gps_pvt/extconf.rb +6 -5
- data/ext/ninja-scan-light/tool/navigation/GLONASS_Solver.h +1 -1
- data/ext/ninja-scan-light/tool/navigation/GPS.h +6 -2
- data/ext/ninja-scan-light/tool/navigation/GPS_Solver.h +1 -1
- data/ext/ninja-scan-light/tool/navigation/GPS_Solver_Base.h +3 -1
- data/ext/ninja-scan-light/tool/navigation/GPS_Solver_MultiFrequency.h +3 -0
- data/ext/ninja-scan-light/tool/navigation/RINEX.h +9 -9
- data/ext/ninja-scan-light/tool/navigation/SBAS_Solver.h +1 -1
- data/ext/ninja-scan-light/tool/navigation/coordinate.h +13 -6
- data/ext/ninja-scan-light/tool/param/matrix.h +1020 -247
- data/ext/ninja-scan-light/tool/param/matrix_fixed.h +26 -0
- data/ext/ninja-scan-light/tool/swig/Coordinate.i +12 -12
- data/ext/ninja-scan-light/tool/swig/GPS.i +94 -84
- data/ext/ninja-scan-light/tool/swig/SylphideMath.i +187 -64
- data/ext/ninja-scan-light/tool/swig/spec/GPS_spec.rb +1 -1
- data/ext/ninja-scan-light/tool/swig/spec/SylphideMath_spec.rb +123 -13
- data/gps_pvt.gemspec +2 -1
- data/lib/gps_pvt/ntrip.rb +1 -1
- data/lib/gps_pvt/receiver/rtcm3.rb +106 -24
- data/lib/gps_pvt/receiver.rb +19 -8
- data/lib/gps_pvt/rtcm3.rb +53 -4
- data/lib/gps_pvt/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3484f0e37e7c00f141b306449a90c6ccf3496a886d8c3c08b0a0506fabe5d6f6
|
4
|
+
data.tar.gz: c36df1d120c8d4310e0aad76627ba68763a6b5892bf44ae081dbd7745f962907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a7adb9bbe3f47513bc9f19e1a99ee50615c7b6b7d2377dad9ab1c8388335517b893a899da0ea33d781797256481f25328fd72e3da0e5398f9e155475232580
|
7
|
+
data.tar.gz: b4c64dacb8051345e3f370c7bb69f1d0decd6f4715826a319aadad3785f629ecf07facfc54248f290230fbc9d29a2d5889befeea06971f15a7a4fa7c91d832f7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,161 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
2
|
|
3
|
-
## [
|
3
|
+
## [v0.9.4](https://github.com/fenrir-naru/gps_pvt/tree/v0.9.4) (2023-07-05)
|
4
4
|
|
5
|
-
-
|
5
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.9.3...v0.9.4)
|
6
|
+
|
7
|
+
## [v0.9.3](https://github.com/fenrir-naru/gps_pvt/tree/v0.9.3) (2023-03-07)
|
8
|
+
|
9
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.9.2...v0.9.3)
|
10
|
+
|
11
|
+
## [v0.9.2](https://github.com/fenrir-naru/gps_pvt/tree/v0.9.2) (2023-02-13)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.9.1...v0.9.2)
|
14
|
+
|
15
|
+
## [v0.9.1](https://github.com/fenrir-naru/gps_pvt/tree/v0.9.1) (2023-01-27)
|
16
|
+
|
17
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.9.0...v0.9.1)
|
18
|
+
|
19
|
+
## [v0.9.0](https://github.com/fenrir-naru/gps_pvt/tree/v0.9.0) (2023-01-22)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.8.5...v0.9.0)
|
22
|
+
|
23
|
+
## [v0.8.5](https://github.com/fenrir-naru/gps_pvt/tree/v0.8.5) (2022-12-22)
|
24
|
+
|
25
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.8.4...v0.8.5)
|
26
|
+
|
27
|
+
## [v0.8.4](https://github.com/fenrir-naru/gps_pvt/tree/v0.8.4) (2022-12-19)
|
28
|
+
|
29
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.8.3...v0.8.4)
|
30
|
+
|
31
|
+
## [v0.8.3](https://github.com/fenrir-naru/gps_pvt/tree/v0.8.3) (2022-11-30)
|
32
|
+
|
33
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.8.2...v0.8.3)
|
34
|
+
|
35
|
+
## [v0.8.2](https://github.com/fenrir-naru/gps_pvt/tree/v0.8.2) (2022-11-20)
|
36
|
+
|
37
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.8.1...v0.8.2)
|
38
|
+
|
39
|
+
## [v0.8.1](https://github.com/fenrir-naru/gps_pvt/tree/v0.8.1) (2022-11-17)
|
40
|
+
|
41
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.8.0...v0.8.1)
|
42
|
+
|
43
|
+
## [v0.8.0](https://github.com/fenrir-naru/gps_pvt/tree/v0.8.0) (2022-09-13)
|
44
|
+
|
45
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.7.2...v0.8.0)
|
46
|
+
|
47
|
+
## [v0.7.2](https://github.com/fenrir-naru/gps_pvt/tree/v0.7.2) (2022-09-07)
|
48
|
+
|
49
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.7.1...v0.7.2)
|
50
|
+
|
51
|
+
## [v0.7.1](https://github.com/fenrir-naru/gps_pvt/tree/v0.7.1) (2022-08-25)
|
52
|
+
|
53
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.7.0...v0.7.1)
|
54
|
+
|
55
|
+
## [v0.7.0](https://github.com/fenrir-naru/gps_pvt/tree/v0.7.0) (2022-08-24)
|
56
|
+
|
57
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.6.4...v0.7.0)
|
58
|
+
|
59
|
+
## [v0.6.4](https://github.com/fenrir-naru/gps_pvt/tree/v0.6.4) (2022-08-19)
|
60
|
+
|
61
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.6.3...v0.6.4)
|
62
|
+
|
63
|
+
## [v0.6.3](https://github.com/fenrir-naru/gps_pvt/tree/v0.6.3) (2022-08-19)
|
64
|
+
|
65
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.6.2...v0.6.3)
|
66
|
+
|
67
|
+
## [v0.6.2](https://github.com/fenrir-naru/gps_pvt/tree/v0.6.2) (2022-08-03)
|
68
|
+
|
69
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.6.1...v0.6.2)
|
70
|
+
|
71
|
+
## [v0.6.1](https://github.com/fenrir-naru/gps_pvt/tree/v0.6.1) (2022-07-21)
|
72
|
+
|
73
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.6.0...v0.6.1)
|
74
|
+
|
75
|
+
## [v0.6.0](https://github.com/fenrir-naru/gps_pvt/tree/v0.6.0) (2022-07-14)
|
76
|
+
|
77
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.5.1...v0.6.0)
|
78
|
+
|
79
|
+
## [v0.5.1](https://github.com/fenrir-naru/gps_pvt/tree/v0.5.1) (2022-05-07)
|
80
|
+
|
81
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.5.0...v0.5.1)
|
82
|
+
|
83
|
+
## [v0.5.0](https://github.com/fenrir-naru/gps_pvt/tree/v0.5.0) (2022-04-11)
|
84
|
+
|
85
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.4.1...v0.5.0)
|
86
|
+
|
87
|
+
## [v0.4.1](https://github.com/fenrir-naru/gps_pvt/tree/v0.4.1) (2022-03-30)
|
88
|
+
|
89
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.4.0...v0.4.1)
|
90
|
+
|
91
|
+
## [v0.4.0](https://github.com/fenrir-naru/gps_pvt/tree/v0.4.0) (2022-03-17)
|
92
|
+
|
93
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.3.3...v0.4.0)
|
94
|
+
|
95
|
+
## [v0.3.3](https://github.com/fenrir-naru/gps_pvt/tree/v0.3.3) (2022-03-04)
|
96
|
+
|
97
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.3.2...v0.3.3)
|
98
|
+
|
99
|
+
## [v0.3.2](https://github.com/fenrir-naru/gps_pvt/tree/v0.3.2) (2022-03-04)
|
100
|
+
|
101
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.3.1...v0.3.2)
|
102
|
+
|
103
|
+
## [v0.3.1](https://github.com/fenrir-naru/gps_pvt/tree/v0.3.1) (2022-03-04)
|
104
|
+
|
105
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.3.0...v0.3.1)
|
106
|
+
|
107
|
+
## [v0.3.0](https://github.com/fenrir-naru/gps_pvt/tree/v0.3.0) (2022-03-01)
|
108
|
+
|
109
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.2.3...v0.3.0)
|
110
|
+
|
111
|
+
## [v0.2.3](https://github.com/fenrir-naru/gps_pvt/tree/v0.2.3) (2022-02-22)
|
112
|
+
|
113
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.2.2...v0.2.3)
|
114
|
+
|
115
|
+
## [v0.2.2](https://github.com/fenrir-naru/gps_pvt/tree/v0.2.2) (2022-02-22)
|
116
|
+
|
117
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.2.1...v0.2.2)
|
118
|
+
|
119
|
+
## [v0.2.1](https://github.com/fenrir-naru/gps_pvt/tree/v0.2.1) (2022-01-31)
|
120
|
+
|
121
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.2.0...v0.2.1)
|
122
|
+
|
123
|
+
## [v0.2.0](https://github.com/fenrir-naru/gps_pvt/tree/v0.2.0) (2022-01-26)
|
124
|
+
|
125
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.1.7...v0.2.0)
|
126
|
+
|
127
|
+
## [v0.1.7](https://github.com/fenrir-naru/gps_pvt/tree/v0.1.7) (2022-01-14)
|
128
|
+
|
129
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.1.6...v0.1.7)
|
130
|
+
|
131
|
+
## [v0.1.6](https://github.com/fenrir-naru/gps_pvt/tree/v0.1.6) (2021-12-22)
|
132
|
+
|
133
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.1.5...v0.1.6)
|
134
|
+
|
135
|
+
## [v0.1.5](https://github.com/fenrir-naru/gps_pvt/tree/v0.1.5) (2021-12-22)
|
136
|
+
|
137
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.1.4...v0.1.5)
|
138
|
+
|
139
|
+
## [v0.1.4](https://github.com/fenrir-naru/gps_pvt/tree/v0.1.4) (2021-12-22)
|
140
|
+
|
141
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.1.3...v0.1.4)
|
142
|
+
|
143
|
+
## [v0.1.3](https://github.com/fenrir-naru/gps_pvt/tree/v0.1.3) (2021-12-21)
|
144
|
+
|
145
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.1.2...v0.1.3)
|
146
|
+
|
147
|
+
## [v0.1.2](https://github.com/fenrir-naru/gps_pvt/tree/v0.1.2) (2021-12-21)
|
148
|
+
|
149
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.1.1...v0.1.2)
|
150
|
+
|
151
|
+
## [v0.1.1](https://github.com/fenrir-naru/gps_pvt/tree/v0.1.1) (2021-12-20)
|
152
|
+
|
153
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/v0.1.0...v0.1.1)
|
154
|
+
|
155
|
+
## [v0.1.0](https://github.com/fenrir-naru/gps_pvt/tree/v0.1.0) (2021-12-20)
|
156
|
+
|
157
|
+
[Full Changelog](https://github.com/fenrir-naru/gps_pvt/compare/71da9fe5d66088c8fb93cd0a74cc7f8056141e51...v0.1.0)
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/README.md
CHANGED
@@ -42,7 +42,7 @@ The format of file is automatically determined with its extension, such as .ubx
|
|
42
42
|
| --sp3=file_or_URI | [Standard Product 3 Orbit Format](https://files.igs.org/pub/data/format/sp3c.txt) (supported gps_pvt version >= 0.6.0) |
|
43
43
|
| --antex=file_or_URI | [Antenna Exchange Format](https://igs.org/wg/antenna#files) (supported gps_pvt version >= 0.6.0) |
|
44
44
|
| --rinex_clk=file_or_URI | [RINEX clock](https://files.igs.org/pub/data/format/rinex_clock304.txt) file (supported gps_pvt version >= 0.7.0) |
|
45
|
-
| <a name=opt_rtcm3>--rtcm3=file_or_URI</a> | [RTCM 10403.x](https://rtcm.myshopify.com/collections/differential-global-navigation-satellite-dgnss-standards). (supported gps_pvt version >= 0.9.0) The latest version uses message type Observation(GPS:
|
45
|
+
| <a name=opt_rtcm3>--rtcm3=file_or_URI</a> | [RTCM 10403.x](https://rtcm.myshopify.com/collections/differential-global-navigation-satellite-dgnss-standards). (supported gps_pvt version >= 0.9.0) The latest version uses message type Observation(GPS: 1001..1004; GLONASS: 1009..1012), Epehemris(GPS: 1019; GLOANSS: 1020; SBAS: 1043; QZSS: 1044), MSM(GPS: 1071..1077; GLONASS: 1081..1087; SBAS: 1101..1107; QZSS: 1111..1117) |
|
46
46
|
|
47
47
|
Since version 0.2.0, SBAS and QZSS are supported in addition to GPS. Since version 0.4.0, GLONASS is also available. QZSS ranging is activated in default, however, SBAS is just utilized for ionospheric correction. GLONASS is also turned off by default. If you want to activate SBAS or GLONASS ranging, "--with=(system or PRN)" options are used with gps_pvt executable like
|
48
48
|
|
data/Rakefile
CHANGED
@@ -111,4 +111,11 @@ file "ext/ninja-scan-light/tool" do |t|
|
|
111
111
|
Rake::Task["git:submodules:init"].invoke
|
112
112
|
end
|
113
113
|
|
114
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
115
|
+
%r|github\.com/([^/]+)/([^/]+)| =~ Bundler::load_gemspec(
|
116
|
+
Dir::glob(File::join(File::dirname(__FILE__), '*.gemspec')).first).homepage
|
117
|
+
config.user = $1
|
118
|
+
config.project = $2
|
119
|
+
end if require 'github_changelog_generator/task'
|
120
|
+
|
114
121
|
task :default => ["ext/ninja-scan-light/tool", :compile, :spec]
|
@@ -1855,11 +1855,13 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1855
1855
|
#define SWIGTYPE_p_a_3__a_3__double swig_types[5]
|
1856
1856
|
#define SWIGTYPE_p_char swig_types[6]
|
1857
1857
|
#define SWIGTYPE_p_llh_t swig_types[7]
|
1858
|
-
#define
|
1859
|
-
#define
|
1860
|
-
#define
|
1861
|
-
|
1862
|
-
|
1858
|
+
#define SWIGTYPE_p_native_exception swig_types[8]
|
1859
|
+
#define SWIGTYPE_p_self_t swig_types[9]
|
1860
|
+
#define SWIGTYPE_p_std__exception swig_types[10]
|
1861
|
+
#define SWIGTYPE_p_swig__GC_VALUE swig_types[11]
|
1862
|
+
#define SWIGTYPE_p_xyz_t swig_types[12]
|
1863
|
+
static swig_type_info *swig_types[14];
|
1864
|
+
static swig_module_info swig_module = {swig_types, 13, 0, 0, 0, 0};
|
1863
1865
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1864
1866
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1865
1867
|
|
@@ -2207,7 +2209,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
|
2207
2209
|
}
|
2208
2210
|
|
2209
2211
|
|
2210
|
-
/*@SWIG:/usr/
|
2212
|
+
/*@SWIG:/usr/share/swig4.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2211
2213
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
|
2212
2214
|
{
|
2213
2215
|
VALUE *args = (VALUE *)arg;
|
@@ -2614,7 +2616,7 @@ SWIG_From_std_string (const std::string& s)
|
|
2614
2616
|
return SWIG_FromCharPtrAndSize(s.data(), s.size());
|
2615
2617
|
}
|
2616
2618
|
|
2617
|
-
SWIGINTERN void System_3D_Sl_double_Sg__each(System_3D< double > const *self){
|
2619
|
+
SWIGINTERN void System_3D_Sl_double_Sg__each(System_3D< double > const *self,void const *check_block){
|
2618
2620
|
for(int i(0); i < 3; ++i){
|
2619
2621
|
|
2620
2622
|
int state;
|
@@ -3000,9 +3002,16 @@ Iterate thru each element in the Base. A block must be provided.
|
|
3000
3002
|
SWIGINTERN VALUE
|
3001
3003
|
_wrap_Base_each(int argc, VALUE *argv, VALUE self) {
|
3002
3004
|
System_3D< double > *arg1 = (System_3D< double > *) 0 ;
|
3005
|
+
void *arg2 = (void *) 0 ;
|
3003
3006
|
void *argp1 = 0 ;
|
3004
3007
|
int res1 = 0 ;
|
3005
3008
|
|
3009
|
+
{
|
3010
|
+
if(!rb_block_given_p()){
|
3011
|
+
return rb_enumeratorize(self, ID2SYM(rb_frame_callee()), argc, argv);
|
3012
|
+
}
|
3013
|
+
|
3014
|
+
}
|
3006
3015
|
if ((argc < 0) || (argc > 0)) {
|
3007
3016
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3008
3017
|
}
|
@@ -3011,19 +3020,11 @@ _wrap_Base_each(int argc, VALUE *argv, VALUE self) {
|
|
3011
3020
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_3D< double > const *","each", 1, self ));
|
3012
3021
|
}
|
3013
3022
|
arg1 = reinterpret_cast< System_3D< double > * >(argp1);
|
3014
|
-
{
|
3015
|
-
|
3016
|
-
|
3017
|
-
|
3018
|
-
|
3019
|
-
try {
|
3020
|
-
System_3D_Sl_double_Sg__each((System_3D< double > const *)arg1);
|
3021
|
-
} catch (const native_exception &e) {
|
3022
|
-
e.regenerate();
|
3023
|
-
SWIG_fail;
|
3024
|
-
} catch (const std::exception& e) {
|
3025
|
-
SWIG_exception(SWIG_RuntimeError, e.what());
|
3026
|
-
}
|
3023
|
+
try {
|
3024
|
+
System_3D_Sl_double_Sg__each((System_3D< double > const *)arg1,(void const *)arg2);
|
3025
|
+
} catch(native_exception &_e) {
|
3026
|
+
(&_e)->regenerate();
|
3027
|
+
SWIG_fail;
|
3027
3028
|
}
|
3028
3029
|
return Qnil;
|
3029
3030
|
fail:
|
@@ -3664,17 +3665,17 @@ fail:
|
|
3664
3665
|
|
3665
3666
|
|
3666
3667
|
/*
|
3667
|
-
Document-method: GPS_PVT::Coordinate::XYZ.
|
3668
|
+
Document-method: GPS_PVT::Coordinate::XYZ.distance
|
3668
3669
|
|
3669
3670
|
call-seq:
|
3670
|
-
|
3671
|
-
|
3671
|
+
distance -> double
|
3672
|
+
distance(XYZ another) -> double
|
3672
3673
|
|
3673
3674
|
An instance method.
|
3674
3675
|
|
3675
3676
|
*/
|
3676
3677
|
SWIGINTERN VALUE
|
3677
|
-
|
3678
|
+
_wrap_XYZ_distance__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3678
3679
|
System_XYZ< double,WGS84 > *arg1 = (System_XYZ< double,WGS84 > *) 0 ;
|
3679
3680
|
void *argp1 = 0 ;
|
3680
3681
|
int res1 = 0 ;
|
@@ -3686,10 +3687,10 @@ _wrap_XYZ_dist__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
3686
3687
|
}
|
3687
3688
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_System_XYZT_double_WGS84_t, 0 | 0 );
|
3688
3689
|
if (!SWIG_IsOK(res1)) {
|
3689
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > const *","
|
3690
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > const *","distance", 1, self ));
|
3690
3691
|
}
|
3691
3692
|
arg1 = reinterpret_cast< System_XYZ< double,WGS84 > * >(argp1);
|
3692
|
-
result = (double)((System_XYZ< double,WGS84 > const *)arg1)->
|
3693
|
+
result = (double)((System_XYZ< double,WGS84 > const *)arg1)->distance();
|
3693
3694
|
vresult = SWIG_From_double(static_cast< double >(result));
|
3694
3695
|
return vresult;
|
3695
3696
|
fail:
|
@@ -3698,7 +3699,7 @@ fail:
|
|
3698
3699
|
|
3699
3700
|
|
3700
3701
|
SWIGINTERN VALUE
|
3701
|
-
|
3702
|
+
_wrap_XYZ_distance__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3702
3703
|
System_XYZ< double,WGS84 > *arg1 = (System_XYZ< double,WGS84 > *) 0 ;
|
3703
3704
|
System_XYZ< double,WGS84 >::self_t *arg2 = 0 ;
|
3704
3705
|
void *argp1 = 0 ;
|
@@ -3713,18 +3714,18 @@ _wrap_XYZ_dist__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
3713
3714
|
}
|
3714
3715
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_System_XYZT_double_WGS84_t, 0 | 0 );
|
3715
3716
|
if (!SWIG_IsOK(res1)) {
|
3716
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > const *","
|
3717
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > const *","distance", 1, self ));
|
3717
3718
|
}
|
3718
3719
|
arg1 = reinterpret_cast< System_XYZ< double,WGS84 > * >(argp1);
|
3719
3720
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_System_XYZT_double_WGS84_t, 0 );
|
3720
3721
|
if (!SWIG_IsOK(res2)) {
|
3721
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 >::self_t const &","
|
3722
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 >::self_t const &","distance", 2, argv[0] ));
|
3722
3723
|
}
|
3723
3724
|
if (!argp2) {
|
3724
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "System_XYZ< double,WGS84 >::self_t const &","
|
3725
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "System_XYZ< double,WGS84 >::self_t const &","distance", 2, argv[0]));
|
3725
3726
|
}
|
3726
3727
|
arg2 = reinterpret_cast< System_XYZ< double,WGS84 >::self_t * >(argp2);
|
3727
|
-
result = (double)((System_XYZ< double,WGS84 > const *)arg1)->
|
3728
|
+
result = (double)((System_XYZ< double,WGS84 > const *)arg1)->distance((System_XYZ< double,WGS84 >::self_t const &)*arg2);
|
3728
3729
|
vresult = SWIG_From_double(static_cast< double >(result));
|
3729
3730
|
return vresult;
|
3730
3731
|
fail:
|
@@ -3732,7 +3733,7 @@ fail:
|
|
3732
3733
|
}
|
3733
3734
|
|
3734
3735
|
|
3735
|
-
SWIGINTERN VALUE
|
3736
|
+
SWIGINTERN VALUE _wrap_XYZ_distance(int nargs, VALUE *args, VALUE self) {
|
3736
3737
|
int argc;
|
3737
3738
|
VALUE argv[3];
|
3738
3739
|
int ii;
|
@@ -3749,7 +3750,7 @@ SWIGINTERN VALUE _wrap_XYZ_dist(int nargs, VALUE *args, VALUE self) {
|
|
3749
3750
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, 0);
|
3750
3751
|
_v = SWIG_CheckState(res);
|
3751
3752
|
if (_v) {
|
3752
|
-
return
|
3753
|
+
return _wrap_XYZ_distance__SWIG_0(nargs, args, self);
|
3753
3754
|
}
|
3754
3755
|
}
|
3755
3756
|
if (argc == 2) {
|
@@ -3762,15 +3763,15 @@ SWIGINTERN VALUE _wrap_XYZ_dist(int nargs, VALUE *args, VALUE self) {
|
|
3762
3763
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, SWIG_POINTER_NO_NULL);
|
3763
3764
|
_v = SWIG_CheckState(res);
|
3764
3765
|
if (_v) {
|
3765
|
-
return
|
3766
|
+
return _wrap_XYZ_distance__SWIG_1(nargs, args, self);
|
3766
3767
|
}
|
3767
3768
|
}
|
3768
3769
|
}
|
3769
3770
|
|
3770
3771
|
fail:
|
3771
|
-
Ruby_Format_OverloadedError( argc, 3, "XYZ.
|
3772
|
-
" double XYZ.
|
3773
|
-
" double XYZ.
|
3772
|
+
Ruby_Format_OverloadedError( argc, 3, "XYZ.distance",
|
3773
|
+
" double XYZ.distance()\n"
|
3774
|
+
" double XYZ.distance(System_XYZ< double,WGS84 >::self_t const &another)\n");
|
3774
3775
|
|
3775
3776
|
return Qnil;
|
3776
3777
|
}
|
@@ -5965,6 +5966,39 @@ fail:
|
|
5965
5966
|
}
|
5966
5967
|
|
5967
5968
|
|
5969
|
+
/*
|
5970
|
+
Document-method: GPS_PVT::Coordinate::ENU.distance
|
5971
|
+
|
5972
|
+
call-seq:
|
5973
|
+
distance -> double
|
5974
|
+
|
5975
|
+
An instance method.
|
5976
|
+
|
5977
|
+
*/
|
5978
|
+
SWIGINTERN VALUE
|
5979
|
+
_wrap_ENU_distance(int argc, VALUE *argv, VALUE self) {
|
5980
|
+
System_ENU< double,WGS84 > *arg1 = (System_ENU< double,WGS84 > *) 0 ;
|
5981
|
+
void *argp1 = 0 ;
|
5982
|
+
int res1 = 0 ;
|
5983
|
+
double result;
|
5984
|
+
VALUE vresult = Qnil;
|
5985
|
+
|
5986
|
+
if ((argc < 0) || (argc > 0)) {
|
5987
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5988
|
+
}
|
5989
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_System_ENUT_double_WGS84_t, 0 | 0 );
|
5990
|
+
if (!SWIG_IsOK(res1)) {
|
5991
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_ENU< double,WGS84 > const *","distance", 1, self ));
|
5992
|
+
}
|
5993
|
+
arg1 = reinterpret_cast< System_ENU< double,WGS84 > * >(argp1);
|
5994
|
+
result = (double)((System_ENU< double,WGS84 > const *)arg1)->distance();
|
5995
|
+
vresult = SWIG_From_double(static_cast< double >(result));
|
5996
|
+
return vresult;
|
5997
|
+
fail:
|
5998
|
+
return Qnil;
|
5999
|
+
}
|
6000
|
+
|
6001
|
+
|
5968
6002
|
/*
|
5969
6003
|
Document-method: GPS_PVT::Coordinate::ENU.elevation
|
5970
6004
|
|
@@ -6248,6 +6282,9 @@ static void *_p_System_LLHT_double_WGS84_tTo_p_System_3DT_double_t(void *x, int
|
|
6248
6282
|
static void *_p_System_ENUT_double_WGS84_tTo_p_System_3DT_double_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
6249
6283
|
return (void *)((System_3D< double > *) ((System_ENU< double,WGS84 > *) x));
|
6250
6284
|
}
|
6285
|
+
static void *_p_native_exceptionTo_p_std__exception(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
6286
|
+
return (void *)((std::exception *) ((native_exception *) x));
|
6287
|
+
}
|
6251
6288
|
static swig_type_info _swigt__p_System_3DT_double_t = {"_p_System_3DT_double_t", "System_3D< double >::self_t *|System_3D< double > *", 0, 0, (void*)0, 0};
|
6252
6289
|
static swig_type_info _swigt__p_System_ENUT_double_WGS84_t = {"_p_System_ENUT_double_WGS84_t", "System_ENU< double,WGS84 > *|System_ENU< double,WGS84 >::self_t *", 0, 0, (void*)0, 0};
|
6253
6290
|
static swig_type_info _swigt__p_System_LLHT_double_WGS84_t = {"_p_System_LLHT_double_WGS84_t", "System_ENU< double,WGS84 >::llh_t *|System_LLH< double,WGS84 > *|System_LLH< double,WGS84 >::self_t *", 0, 0, (void*)0, 0};
|
@@ -6257,6 +6294,8 @@ static swig_type_info _swigt__p_a_3__a_3__double = {"_p_a_3__a_3__double", "doub
|
|
6257
6294
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
6258
6295
|
static swig_type_info _swigt__p_llh_t = {"_p_llh_t", "llh_t *", 0, 0, (void*)0, 0};
|
6259
6296
|
static swig_type_info _swigt__p_self_t = {"_p_self_t", "self_t *", 0, 0, (void*)0, 0};
|
6297
|
+
static swig_type_info _swigt__p_std__exception = {"_p_std__exception", "std::exception *", 0, 0, (void*)0, 0};
|
6298
|
+
static swig_type_info _swigt__p_native_exception = {"_p_native_exception", 0, 0, 0, 0, 0};
|
6260
6299
|
static swig_type_info _swigt__p_swig__GC_VALUE = {"_p_swig__GC_VALUE", "swig::GC_VALUE *", 0, 0, (void*)0, 0};
|
6261
6300
|
static swig_type_info _swigt__p_xyz_t = {"_p_xyz_t", "xyz_t *", 0, 0, (void*)0, 0};
|
6262
6301
|
|
@@ -6269,7 +6308,9 @@ static swig_type_info *swig_type_initial[] = {
|
|
6269
6308
|
&_swigt__p_a_3__a_3__double,
|
6270
6309
|
&_swigt__p_char,
|
6271
6310
|
&_swigt__p_llh_t,
|
6311
|
+
&_swigt__p_native_exception,
|
6272
6312
|
&_swigt__p_self_t,
|
6313
|
+
&_swigt__p_std__exception,
|
6273
6314
|
&_swigt__p_swig__GC_VALUE,
|
6274
6315
|
&_swigt__p_xyz_t,
|
6275
6316
|
};
|
@@ -6283,6 +6324,8 @@ static swig_cast_info _swigc__p_a_3__a_3__double[] = { {&_swigt__p_a_3__a_3__do
|
|
6283
6324
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
6284
6325
|
static swig_cast_info _swigc__p_llh_t[] = { {&_swigt__p_llh_t, 0, 0, 0},{0, 0, 0, 0}};
|
6285
6326
|
static swig_cast_info _swigc__p_self_t[] = { {&_swigt__p_self_t, 0, 0, 0},{0, 0, 0, 0}};
|
6327
|
+
static swig_cast_info _swigc__p_native_exception[] = {{&_swigt__p_native_exception, 0, 0, 0},{0, 0, 0, 0}};
|
6328
|
+
static swig_cast_info _swigc__p_std__exception[] = { {&_swigt__p_std__exception, 0, 0, 0}, {&_swigt__p_native_exception, _p_native_exceptionTo_p_std__exception, 0, 0},{0, 0, 0, 0}};
|
6286
6329
|
static swig_cast_info _swigc__p_swig__GC_VALUE[] = { {&_swigt__p_swig__GC_VALUE, 0, 0, 0},{0, 0, 0, 0}};
|
6287
6330
|
static swig_cast_info _swigc__p_xyz_t[] = { {&_swigt__p_xyz_t, 0, 0, 0},{0, 0, 0, 0}};
|
6288
6331
|
|
@@ -6295,7 +6338,9 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
6295
6338
|
_swigc__p_a_3__a_3__double,
|
6296
6339
|
_swigc__p_char,
|
6297
6340
|
_swigc__p_llh_t,
|
6341
|
+
_swigc__p_native_exception,
|
6298
6342
|
_swigc__p_self_t,
|
6343
|
+
_swigc__p_std__exception,
|
6299
6344
|
_swigc__p_swig__GC_VALUE,
|
6300
6345
|
_swigc__p_xyz_t,
|
6301
6346
|
};
|
@@ -6586,7 +6631,7 @@ SWIGEXPORT void Init_Coordinate(void) {
|
|
6586
6631
|
rb_define_method(SwigClassXYZ.klass, "z", VALUEFUNC(_wrap_XYZ_z), -1);
|
6587
6632
|
rb_define_method(SwigClassXYZ.klass, "+", VALUEFUNC(_wrap_XYZ___add__), -1);
|
6588
6633
|
rb_define_method(SwigClassXYZ.klass, "-", VALUEFUNC(_wrap_XYZ___sub__), -1);
|
6589
|
-
rb_define_method(SwigClassXYZ.klass, "
|
6634
|
+
rb_define_method(SwigClassXYZ.klass, "distance", VALUEFUNC(_wrap_XYZ_distance), -1);
|
6590
6635
|
rb_define_singleton_method(SwigClassXYZ.klass, "f0", VALUEFUNC(_wrap_XYZ_f0_get), 0);
|
6591
6636
|
rb_define_singleton_method(SwigClassXYZ.klass, "a0", VALUEFUNC(_wrap_XYZ_a0_get), 0);
|
6592
6637
|
rb_define_singleton_method(SwigClassXYZ.klass, "b0", VALUEFUNC(_wrap_XYZ_b0_get), 0);
|
@@ -6640,6 +6685,7 @@ SWIGEXPORT void Init_Coordinate(void) {
|
|
6640
6685
|
rb_define_singleton_method(SwigClassENU.klass, "relative_rel", VALUEFUNC(_wrap_ENU_relative_rel), -1);
|
6641
6686
|
rb_define_singleton_method(SwigClassENU.klass, "relative", VALUEFUNC(_wrap_ENU_relative), -1);
|
6642
6687
|
rb_define_method(SwigClassENU.klass, "absolute", VALUEFUNC(_wrap_ENU_absolute), -1);
|
6688
|
+
rb_define_method(SwigClassENU.klass, "distance", VALUEFUNC(_wrap_ENU_distance), -1);
|
6643
6689
|
rb_define_method(SwigClassENU.klass, "elevation", VALUEFUNC(_wrap_ENU_elevation), -1);
|
6644
6690
|
rb_define_method(SwigClassENU.klass, "azimuth", VALUEFUNC(_wrap_ENU_azimuth), -1);
|
6645
6691
|
rb_define_method(SwigClassENU.klass, "down", VALUEFUNC(_wrap_ENU_down), -1);
|