oml4r 2.10.4.30.g89b8035 → 2.10.4.32.gf5eacde

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +13 -5
  2. data/bin/signalgen +4 -4
  3. data/omf/signalgen.rb +2 -2
  4. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cd8b6f5e465409927b5b77ac846b1d43d14a4b6c
4
- data.tar.gz: 7ecd90004cbbe74cad0f59777f154848411f7f2a
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZjY0N2Q4MDdkNzIwYTI3NTAzM2UyOTBmZWQ1ZjQ1YmE4Y2ZiNzY3OA==
5
+ data.tar.gz: !binary |-
6
+ ZTQwMjk4MDhmNDFlNDRhODc4MTBiNjhkODc4Y2FjMjM5NDFjZDRkNQ==
5
7
  SHA512:
6
- metadata.gz: 8119deb446648db71725aa85043ee6e9cf5bda2c03b50599372d18edde524880cde856102f68cb8786a62d53598ff3f7ae149c758d436defe6b52d5046a240a9
7
- data.tar.gz: 13552cdb60d6f98357bc2140cdad612634e7ee017b8d3c08bc2662e02d0c45d35f601987dcc9c81ec66674a96d137f224c24bdf3cd838335b23c72941fb56a89
8
+ metadata.gz: !binary |-
9
+ YmEyMWM3MWE0YjQ3YzgwODFiN2VkYTc2OWMzZGY4ZjhhNzMxZWY1NmVmNDgz
10
+ NzE1MWNjODlmOGQ4NTQ0OWU2NjJkYWVkODNiZTlkOWNiNmI2YmQ2ZWMwZDAy
11
+ NzNkNjVhNDk5OWNmZDVlMzkzOWE4N2Y4YzFlMGM3OTQ0YzZkMWQ=
12
+ data.tar.gz: !binary |-
13
+ OWRlOTVkMDhkYzljYzhlYTJkMmE3YjI0ZDE3YzY2YWQ0YzFiNjQ5ZTBkMGY1
14
+ Yjk3MzY3MDg3ZDUyMjMzM2UyM2UwYzdlOWQ5ODdlYTk3MTEyOTY1NzdmNmRi
15
+ YzlhZDhkMGFkODk5OWFmMzllOWFlNzk2YzgwYTk0ZjBlMmMwMWY=
@@ -21,7 +21,7 @@ APPNAME = 'signalgen'
21
21
  DEF_ODOMAIN = 'foo'
22
22
  DEF_OCOLLECT = 'file:-'
23
23
  DEF_FREQ = 2.0 # Hz
24
- DEF_INCREMENT = 15 # rad
24
+ DEF_INCREMENT = 15 # degree
25
25
  DEF_SAMPLE = 500 # samples
26
26
 
27
27
  # Define our Measurement Points
@@ -48,8 +48,8 @@ begin
48
48
  @sample = DEF_SAMPLE
49
49
  OML4R::init(ARGV, opts) do |ap|
50
50
  ap.banner = "A simple OML4R example, which generates some signal values."
51
- ap.on("-f","--frequency F","Signal frequency [Hz]") { |f| @freq = f.to_f }
52
- ap.on("-i","--increment A","Increment angle between samples [rad]") { |a| @inc = a.to_i }
51
+ ap.on("-f","--frequency F","Measurement frequency [Hz]") { |f| @freq = f.to_f }
52
+ ap.on("-i","--increment A","Increment angle between samples [degree]") { |a| @inc = a.to_i }
53
53
  ap.on("-n","--samples N","Number of samples to generate") { |n| @sample = n.to_i }
54
54
  end
55
55
  rescue OML4R::MissingArgumentException => mex
@@ -66,7 +66,7 @@ SinMP.inject_metadata('samples',@sample)
66
66
  # Now collect and inject some measurements
67
67
  @sample.times do |i|
68
68
  sleep 1./@freq
69
- angle = @inc * i
69
+ angle = Math::PI / 180 * (@inc * i)
70
70
  SinMP.inject("label_#{angle}", angle, Math.sin(angle))
71
71
  CosMP.inject("label_#{angle}", Math.cos(angle))
72
72
  end
@@ -10,8 +10,8 @@ defApplication('signalgen') do |a|
10
10
  a.binary_path = "/usr/local/bin/signalgen"
11
11
  a.description = "A simple signal generator reporting values into OML"
12
12
 
13
- a.defProperty('frequency', 'Signal frequency [Hz]', '-f', :type => :numeric)
14
- a.defProperty('increment', 'Increment angle between samples [rad]', '-i', :type => :numeric)
13
+ a.defProperty('frequency', 'Measurement frequency [Hz]', '-f', :type => :numeric)
14
+ a.defProperty('increment', 'Increment angle between samples [degree]', '-i', :type => :numeric)
15
15
  a.defProperty('samples', 'Number of samples to generate', '-n', :type => :numeric)
16
16
 
17
17
  a.defMeasurement('sin') do |m|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oml4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.4.30.g89b8035
4
+ version: 2.10.4.32.gf5eacde
5
5
  platform: ruby
6
6
  authors:
7
7
  - NICTA
@@ -77,18 +77,19 @@ require_paths:
77
77
  - lib
78
78
  required_ruby_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.9'
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - '>'
85
+ - - ! '>'
86
86
  - !ruby/object:Gem::Version
87
87
  version: 1.3.1
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.2.1
90
+ rubygems_version: 2.1.10
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Simple OML client library and applications for Ruby
94
94
  test_files: []
95
+ has_rdoc: