gps_pvt 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 859eb4d8638d8ac33ffe0b070242da4a90e92427a49d3ecc8cca82850ad27921
4
- data.tar.gz: 6ddb0a60db3e9cf4adab2dd4bed0175ec86c8675c1223079a9801513e93f2769
3
+ metadata.gz: 58f4afe48f4ffe54827ee4cdcefa0f1f05b34f933ec58ba8eeeaf271bca1efec
4
+ data.tar.gz: f0f606b68eeac175d84c6b9befdef25a3e1ca61bac1b2de078cff9c0e36073b0
5
5
  SHA512:
6
- metadata.gz: b7db4b42ef5175e1b90d95230bc40323d284f75bfa70a155d1dff0cc18ec8abf12b2b17990f2d59131dd32b2b6b718feab828a0d6f0650a5141304b43b0adfc8
7
- data.tar.gz: 49ee8add62f37aefbcf7ec5bbb154ab7b6dab0f30c0c7677193c80286ce4149b8aa9d7a626004fa5769b2fd7ae0ee823f511d7698a15571547b860895daee35c
6
+ metadata.gz: f21951df16944c44a9ff009307860bbb4c815ff5b5ebabac61853c22c4d85b3f61db463754c0775f63fc301b2f7cb425bd46c9f32e9e6f653a86d2f92faa02fc
7
+ data.tar.gz: d51d26bd9fbcfcd28dfb2a660c965bca1d9b697936d53ebba87a4c79014bf0bb7b0fb5447e8a33aecf258eca0c8344cee5545e0798b0a500c3bd3ec1cd35e359
data/README.md CHANGED
@@ -27,6 +27,12 @@ For Windows users, this gem requires Devkit because of native compilation.
27
27
 
28
28
  ## Usage
29
29
 
30
+ For user who just generate PVT solution, an attached executable is useful. After installation, type
31
+
32
+ $ gps_pvt RINEX_or_UBX_file(s)
33
+
34
+ For developer, this library will be used in the following:
35
+
30
36
  ```ruby
31
37
  require 'gps_pvt'
32
38
 
data/exe/gps_pvt ADDED
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'gps_pvt'
4
+
5
+ # runnable quick example to solve PVT by using RINEX NAV/OBS or u-blox ubx
6
+
7
+ $stderr.puts <<__STRING__
8
+ Usage: #{__FILE__} GPS_file1 GPS_file2 ...
9
+ As GPS_file, rinex_nav(*.YYn), rinex_obs(*.YYo), and ubx(*.ubx) format are currently supported.
10
+ File format is automatically determined based on its extention described in above parentheses.
11
+ Note: YY = last two digit of year.
12
+ __STRING__
13
+
14
+ options = {}
15
+
16
+ # check options
17
+ ARGV.reject!{|arg|
18
+ next false unless arg =~ /^--([^=]+)=?/
19
+ options[$1.to_sym] = $'
20
+ true
21
+ }
22
+
23
+ # Check file existence
24
+ ARGV.each{|arg|
25
+ raise "File not found: #{arg}" unless File::exist?(arg)
26
+ }
27
+
28
+ rcv = GPS_PVT::Receiver::new(options)
29
+
30
+ puts GPS_PVT::Receiver::header
31
+
32
+ # parse RINEX NAV
33
+ ARGV.reject!{|arg|
34
+ next false unless arg =~ /\.\d{2}n$/
35
+ rcv.parse_rinex_nav(arg)
36
+ }
37
+
38
+ # other files
39
+ ARGV.each{|arg|
40
+ case arg
41
+ when /\.ubx$/
42
+ rcv.parse_ubx(arg)
43
+ when /\.\d{2}o$/
44
+ rcv.parse_rinex_obs(arg)
45
+ end
46
+ }
@@ -1,5 +1,3 @@
1
- #!/usr/bin/ruby
2
-
3
1
  =begin
4
2
  Receiver class to be an top level interface to a user
5
3
  (The origin is ninja-scan-light/tool/misc/receiver_debug.rb)
@@ -336,40 +334,3 @@ class Receiver
336
334
  end
337
335
  end
338
336
  end
339
-
340
- if __FILE__ == $0 then
341
- # runnable quick example to solve PVT by using RINEX NAV/OBS or u-blox ubx
342
- options = {}
343
-
344
- # check options
345
- ARGV.reject!{|arg|
346
- next false unless arg =~ /^--([^=]+)=?/
347
- options[$1.to_sym] = $'
348
- true
349
- }
350
-
351
- # Check file existence
352
- ARGV.each{|arg|
353
- raise "File not found: #{arg}" unless File::exist?(arg)
354
- }
355
-
356
- rcv = GPS_PVT::Receiver::new(options)
357
-
358
- puts GPS_PVT::Receiver::header
359
-
360
- # parse RINEX NAV
361
- ARGV.reject!{|arg|
362
- next false unless arg =~ /\.\d{2}n$/
363
- rcv.parse_rinex_nav(arg)
364
- }
365
-
366
- # other files
367
- ARGV.each{|arg|
368
- case arg
369
- when /\.ubx$/
370
- rcv.parse_ubx(arg)
371
- when /\.\d{2}o$/
372
- rcv.parse_rinex_obs(arg)
373
- end
374
- }
375
- end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GPS_PVT
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gps_pvt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - fenrir(M.Naruoka)
@@ -42,7 +42,8 @@ description: This module calculate PVT by using raw observation obtained from a
42
42
  receiver
43
43
  email:
44
44
  - fenrir.naru@gmail.com
45
- executables: []
45
+ executables:
46
+ - gps_pvt
46
47
  extensions:
47
48
  - ext/gps_pvt/extconf.rb
48
49
  extra_rdoc_files: []
@@ -55,6 +56,7 @@ files:
55
56
  - Rakefile
56
57
  - bin/console
57
58
  - bin/setup
59
+ - exe/gps_pvt
58
60
  - ext/gps_pvt/Coordinate/Coordinate_wrap.cxx
59
61
  - ext/gps_pvt/GPS/GPS_wrap.cxx
60
62
  - ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx