cosmos-example 0.0.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bf93beb08a4a1d05d59f58dca20347743fda2820
4
+ data.tar.gz: a11aa26734f60d9226558a0680098f6d813ea08c
5
+ SHA512:
6
+ metadata.gz: e33f4fbf2dce82a0bd67430029d5dab3d423eb86baa6356b414f6e9b36b41b3903ab9833f6b794181b6d9e535fa957b41b6980b4ce50a664b306e0a481ca32ae
7
+ data.tar.gz: d08cb7107fc4a8a10a7c5c3f54d83fdac9c91f7adc4b665705528687766c12735c54526376b7b787ad82d62c67fc75031a28e1a8631d263d29c99f228b8da849
@@ -0,0 +1,2 @@
1
+ COMMAND EXAMPLE START BIG_ENDIAN "Starts something on the example target"
2
+ APPEND_ID_PARAMETER PACKET_ID 8 UINT 1 1 1 "Packet id"
@@ -0,0 +1,5 @@
1
+ TELEMETRY EXAMPLE STATUS BIG_ENDIAN "Health and status from the instrument"
2
+ APPEND_ID_ITEM PACKET_ID 8 UINT 1 "Packet id"
3
+ APPEND_ITEM VALUE 32 UINT "Limits value"
4
+ LIMITS DEFAULT 1 ENABLED 0 1 10 11
5
+ APPEND_ITEM STRING 0 STRING "Time string"
@@ -0,0 +1,6 @@
1
+ # This is a segment of the main cmd_tlm_server.txt that will be used with
2
+ # AUTO_INTERFACE_TARGETS or INTERFACE_TARGET
3
+
4
+ INTERFACE EXAMPLE_INT example_interface.rb localhost 9999
5
+ TARGET EXAMPLE
6
+ DONT_CONNECT
@@ -0,0 +1,22 @@
1
+ # encoding: ascii-8bit
2
+
3
+ # Copyright 2014 Ball Aerospace & Technologies Corp.
4
+ # All Rights Reserved.
5
+ #
6
+ # This program is free software; you can modify and/or redistribute it
7
+ # under the terms of the GNU General Public License
8
+ # as published by the Free Software Foundation; version 3 with
9
+ # attribution addendums as found in the LICENSE.txt
10
+
11
+ require 'cosmos'
12
+ require 'cosmos/interfaces/tcpip_client_interface'
13
+
14
+ class ExampleInterface < Cosmos::TcpipClientInterface
15
+ def initialize (hostname, port, write_timeout = 10.0, read_timeout = nil)
16
+ super(hostname, port, port, write_timeout, read_timeout, 'LENGTH', 0, 32, 4, 1, 'BIG_ENDIAN', 4)
17
+ end
18
+
19
+ def pre_write_packet(packet)
20
+ [packet.length].pack('N') << packet.buffer
21
+ end
22
+ end
data/target.txt ADDED
@@ -0,0 +1,7 @@
1
+ # Ignored Parameters
2
+ # IGNORE_PARAMETER parameter_name
3
+ IGNORE_PARAMETER PACKET_ID
4
+
5
+ IGNORE_ITEM RECEIVED_COUNT
6
+ IGNORE_ITEM RECEIVED_TIMESECONDS
7
+ IGNORE_ITEM RECEIVED_TIMEFORMATTED
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cosmos-example
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Gary Crum
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: cosmos
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.7.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.7.0
33
+ description: " Example gem based target # UPDATE\n"
34
+ email:
35
+ - crumgary@gmail.com
36
+ executables: []
37
+ extensions: []
38
+ extra_rdoc_files: []
39
+ files:
40
+ - cmd_tlm/example_cmds.txt
41
+ - cmd_tlm/example_tlm.txt
42
+ - cmd_tlm_server.txt
43
+ - lib/example_interface.rb
44
+ - target.txt
45
+ homepage:
46
+ licenses:
47
+ - GPL-3.0
48
+ metadata: {}
49
+ post_install_message:
50
+ rdoc_options: []
51
+ require_paths:
52
+ - lib
53
+ required_ruby_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '2'
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ requirements: []
64
+ rubyforge_project:
65
+ rubygems_version: 2.5.1
66
+ signing_key:
67
+ specification_version: 4
68
+ summary: Ball Aerospace COSMOS target
69
+ test_files: []