openc3 5.18.0 → 5.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -4
- data/bin/cstol_converter +14 -14
- data/bin/openc3cli +189 -7
- data/data/config/_interfaces.yaml +1 -1
- data/data/config/command_modifiers.yaml +55 -0
- data/data/config/interface_modifiers.yaml +1 -1
- data/data/config/param_item_modifiers.yaml +1 -1
- data/data/config/parameter_modifiers.yaml +1 -1
- data/data/config/plugins.yaml +6 -2
- data/data/config/screen.yaml +2 -2
- data/data/config/table_manager.yaml +2 -2
- data/data/config/tool.yaml +4 -1
- data/data/config/widgets.yaml +3 -3
- data/ext/openc3/ext/config_parser/config_parser.c +1 -1
- data/ext/openc3/ext/packet/packet.c +1 -1
- data/ext/openc3/ext/platform/platform.c +3 -3
- data/ext/openc3/ext/structure/structure.c +56 -76
- data/lib/openc3/accessors/binary_accessor.rb +4 -4
- data/lib/openc3/accessors/form_accessor.rb +2 -2
- data/lib/openc3/accessors/http_accessor.rb +1 -1
- data/lib/openc3/accessors/json_accessor.rb +6 -4
- data/lib/openc3/accessors/template_accessor.rb +6 -9
- data/lib/openc3/accessors/xml_accessor.rb +1 -1
- data/lib/openc3/api/cmd_api.rb +35 -11
- data/lib/openc3/api/limits_api.rb +1 -1
- data/lib/openc3/config/config_parser.rb +1 -1
- data/lib/openc3/conversions/segmented_polynomial_conversion.rb +7 -7
- data/lib/openc3/core_ext/array.rb +5 -5
- data/lib/openc3/core_ext/exception.rb +9 -2
- data/lib/openc3/core_ext/string.rb +2 -2
- data/lib/openc3/interfaces/http_server_interface.rb +1 -0
- data/lib/openc3/interfaces/interface.rb +1 -1
- data/lib/openc3/interfaces/linc_interface.rb +3 -3
- data/lib/openc3/io/json_api.rb +11 -6
- data/lib/openc3/io/json_rpc.rb +1 -1
- data/lib/openc3/logs/buffered_packet_log_writer.rb +3 -3
- data/lib/openc3/logs/log_writer.rb +7 -8
- data/lib/openc3/logs/packet_log_writer.rb +7 -7
- data/lib/openc3/logs/text_log_writer.rb +4 -4
- data/lib/openc3/microservices/decom_microservice.rb +19 -4
- data/lib/openc3/microservices/interface_microservice.rb +41 -3
- data/lib/openc3/microservices/reaction_microservice.rb +2 -2
- data/lib/openc3/microservices/trigger_group_microservice.rb +3 -3
- data/lib/openc3/migrations/20240915000000_activity_uuid.rb +28 -0
- data/lib/openc3/models/activity_model.rb +109 -80
- data/lib/openc3/models/auth_model.rb +31 -2
- data/lib/openc3/models/cvt_model.rb +11 -5
- data/lib/openc3/models/gem_model.rb +8 -8
- data/lib/openc3/models/plugin_model.rb +3 -3
- data/lib/openc3/models/reducer_model.rb +2 -2
- data/lib/openc3/models/scope_model.rb +1 -1
- data/lib/openc3/models/sorted_model.rb +4 -4
- data/lib/openc3/models/target_model.rb +3 -3
- data/lib/openc3/models/tool_config_model.rb +1 -1
- data/lib/openc3/models/tool_model.rb +4 -4
- data/lib/openc3/models/widget_model.rb +11 -5
- data/lib/openc3/operators/operator.rb +5 -3
- data/lib/openc3/packets/command_validator.rb +48 -0
- data/lib/openc3/packets/commands.rb +6 -14
- data/lib/openc3/packets/packet.rb +31 -15
- data/lib/openc3/packets/packet_config.rb +10 -9
- data/lib/openc3/packets/parsers/packet_parser.rb +3 -3
- data/lib/openc3/packets/structure.rb +21 -13
- data/lib/openc3/packets/structure_item.rb +33 -47
- data/lib/openc3/packets/telemetry.rb +6 -27
- data/lib/openc3/script/api_shared.rb +7 -5
- data/lib/openc3/script/calendar.rb +2 -2
- data/lib/openc3/script/commands.rb +6 -4
- data/lib/openc3/script/metadata.rb +2 -2
- data/lib/openc3/script/suite.rb +17 -17
- data/lib/openc3/streams/serial_stream.rb +2 -3
- data/lib/openc3/streams/stream.rb +2 -2
- data/lib/openc3/tools/cmd_tlm_server/interface_thread.rb +10 -10
- data/lib/openc3/tools/table_manager/table_manager_core.rb +11 -11
- data/lib/openc3/tools/table_manager/table_parser.rb +2 -3
- data/lib/openc3/topics/command_decom_topic.rb +2 -1
- data/lib/openc3/topics/command_topic.rb +3 -3
- data/lib/openc3/topics/decom_interface_topic.rb +2 -2
- data/lib/openc3/topics/telemetry_decom_topic.rb +1 -1
- data/lib/openc3/utilities/authorization.rb +2 -1
- data/lib/openc3/utilities/cli_generator.rb +15 -8
- data/lib/openc3/utilities/cosmos_rails_formatter.rb +60 -0
- data/lib/openc3/utilities/crc.rb +6 -6
- data/lib/openc3/utilities/local_mode.rb +2 -1
- data/lib/openc3/utilities/logger.rb +44 -34
- data/lib/openc3/utilities/metric.rb +1 -2
- data/lib/openc3/utilities/quaternion.rb +18 -18
- data/lib/openc3/utilities/target_file.rb +4 -4
- data/lib/openc3/version.rb +5 -5
- data/lib/openc3/win32/win32_main.rb +2 -2
- data/templates/tool_angular/package.json +21 -21
- data/templates/tool_react/package.json +10 -10
- data/templates/tool_svelte/package.json +11 -11
- data/templates/tool_svelte/src/services/openc3-api.js +17 -17
- data/templates/tool_vue/package.json +9 -9
- data/templates/widget/package.json +6 -7
- metadata +5 -2
@@ -58,9 +58,9 @@ export class OpenC3Api {
|
|
58
58
|
},
|
59
59
|
},
|
60
60
|
)
|
61
|
-
//
|
61
|
+
// let data = response.data
|
62
62
|
// if (data.error) {
|
63
|
-
//
|
63
|
+
// let err = new Error()
|
64
64
|
// err.name = data.error.data.class
|
65
65
|
// err.message = data.error.data.message
|
66
66
|
// console.log(data.error.data.backtrace.join('\n'))
|
@@ -68,7 +68,7 @@ export class OpenC3Api {
|
|
68
68
|
// }
|
69
69
|
return response.data.result
|
70
70
|
} catch (error) {
|
71
|
-
|
71
|
+
let err = new Error()
|
72
72
|
if (error.response) {
|
73
73
|
// The request was made and the server responded with a
|
74
74
|
// status code that falls out of the range of 2xx
|
@@ -232,8 +232,8 @@ export class OpenC3Api {
|
|
232
232
|
return this.exec('get_all_tlm', [target_name])
|
233
233
|
}
|
234
234
|
|
235
|
-
get_all_tlm_names(target_name) {
|
236
|
-
return this.exec('get_all_tlm_names', [target_name])
|
235
|
+
get_all_tlm_names(target_name, hidden = false) {
|
236
|
+
return this.exec('get_all_tlm_names', [target_name], { hidden: hidden })
|
237
237
|
}
|
238
238
|
|
239
239
|
async get_tlm_packet(target_name, packet_name, value_type, stale_time = 30) {
|
@@ -243,9 +243,9 @@ export class OpenC3Api {
|
|
243
243
|
})
|
244
244
|
// Make sure data isn't null or undefined. Note this is the only valid use of == or !=
|
245
245
|
if (data != null) {
|
246
|
-
|
247
|
-
|
248
|
-
for (
|
246
|
+
let len = data.length
|
247
|
+
let converted = null
|
248
|
+
for (let i = 0; i < len; i++) {
|
249
249
|
converted = this.decode_openc3_type(data[i][1])
|
250
250
|
if (converted !== null) {
|
251
251
|
data[i][1] = converted
|
@@ -267,9 +267,9 @@ export class OpenC3Api {
|
|
267
267
|
const data = await this.exec('get_tlm_values', [items], {
|
268
268
|
stale_time: stale_time,
|
269
269
|
})
|
270
|
-
|
271
|
-
|
272
|
-
for (
|
270
|
+
let len = data[0].length
|
271
|
+
let converted = null
|
272
|
+
for (let i = 0; i < len; i++) {
|
273
273
|
converted = this.decode_openc3_type(data[0][i])
|
274
274
|
if (converted !== null) {
|
275
275
|
data[0][i] = converted
|
@@ -294,7 +294,7 @@ export class OpenC3Api {
|
|
294
294
|
) {
|
295
295
|
data = await this.exec('tlm', [target_name], { type: packet_name })
|
296
296
|
} else {
|
297
|
-
|
297
|
+
let err = new Error()
|
298
298
|
err.name = 'TypeError'
|
299
299
|
err.message = `Invalid data type ${packet_name}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`
|
300
300
|
throw err
|
@@ -304,7 +304,7 @@ export class OpenC3Api {
|
|
304
304
|
type: value_type,
|
305
305
|
})
|
306
306
|
}
|
307
|
-
|
307
|
+
let converted = this.decode_openc3_type(data)
|
308
308
|
if (converted !== null) {
|
309
309
|
data = converted
|
310
310
|
}
|
@@ -352,8 +352,8 @@ export class OpenC3Api {
|
|
352
352
|
return this.exec('get_all_cmds', [target_name])
|
353
353
|
}
|
354
354
|
|
355
|
-
get_all_cmd_names(target_name) {
|
356
|
-
return this.exec('get_all_cmd_names', [target_name])
|
355
|
+
get_all_cmd_names(target_name, hidden = false) {
|
356
|
+
return this.exec('get_all_cmd_names', [target_name], { hidden: hidden })
|
357
357
|
}
|
358
358
|
|
359
359
|
get_cmd(target_name, command_name) {
|
@@ -384,8 +384,8 @@ export class OpenC3Api {
|
|
384
384
|
|
385
385
|
// Implementation of functionality shared by cmd methods with param_lists.
|
386
386
|
_cmd(method, target_name, command_name, param_list, headerOptions) {
|
387
|
-
|
388
|
-
for (
|
387
|
+
let converted = null
|
388
|
+
for (let key in param_list) {
|
389
389
|
if (Object.prototype.hasOwnProperty.call(param_list, key)) {
|
390
390
|
converted = this.encode_openc3_type(param_list[key])
|
391
391
|
if (converted !== null) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "<%= tool_name %>",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.19.0",
|
4
4
|
"private": true,
|
5
5
|
"scripts": {
|
6
6
|
"serve": "vue-cli-service serve",
|
@@ -12,9 +12,9 @@
|
|
12
12
|
},
|
13
13
|
"dependencies": {
|
14
14
|
"@astrouxds/astro-web-components": "7.22.1",
|
15
|
-
"@openc3/tool-common": "5.
|
16
|
-
"axios": "1.7.
|
17
|
-
"date-fns": "
|
15
|
+
"@openc3/tool-common": "5.19.0",
|
16
|
+
"axios": "1.7.7",
|
17
|
+
"date-fns": "4.1.0",
|
18
18
|
"portal-vue": "2.1.7",
|
19
19
|
"single-spa-vue": "2.5.1",
|
20
20
|
"sprintf-js": "1.1.3",
|
@@ -35,19 +35,19 @@
|
|
35
35
|
"@vue/cli-service": "5.0.8",
|
36
36
|
"@vue/eslint-config-prettier": "9.0.0",
|
37
37
|
"@vue/test-utils": "1.3.0",
|
38
|
-
"babel-loader": "9.1
|
38
|
+
"babel-loader": "9.2.1",
|
39
39
|
"babel-plugin-istanbul": "7.0.0",
|
40
40
|
"eslint": "8.56.0",
|
41
41
|
"eslint-config-prettier": "9.1.0",
|
42
42
|
"eslint-plugin-prettier": "5.2.1",
|
43
|
-
"eslint-plugin-vue": "9.
|
43
|
+
"eslint-plugin-vue": "9.28.0",
|
44
44
|
"html-webpack-plugin": "^5.6.0",
|
45
45
|
"prettier": "3.3.3",
|
46
|
-
"sass": "1.
|
47
|
-
"sass-loader": "
|
46
|
+
"sass": "1.79.3",
|
47
|
+
"sass-loader": "16.0.2",
|
48
48
|
"vue-cli-plugin-single-spa": "3.3.0",
|
49
49
|
"vue-cli-plugin-vuetify": "2.5.8",
|
50
50
|
"vue-template-compiler": "2.7.16",
|
51
|
-
"webpack": "5.
|
51
|
+
"webpack": "5.95.0"
|
52
52
|
}
|
53
53
|
}
|
@@ -1,13 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "widget",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.19.0",
|
4
4
|
"private": true,
|
5
5
|
"scripts": {
|
6
6
|
"build": "vue-cli-service build --target lib --dest tools/widgets/<%= widget_name %> --formats umd-min <%= widget_path %> --name <%= widget_name %>"
|
7
7
|
},
|
8
8
|
"dependencies": {
|
9
9
|
"@astrouxds/astro-web-components": "7.22.1",
|
10
|
-
"@openc3/tool-common": "5.18.0",
|
11
10
|
"vue": "2.7.16",
|
12
11
|
"vuetify": "2.7.1"
|
13
12
|
},
|
@@ -20,17 +19,17 @@
|
|
20
19
|
"@vue/cli-plugin-eslint": "5.0.8",
|
21
20
|
"@vue/cli-service": "5.0.8",
|
22
21
|
"@vue/eslint-config-prettier": "9.0.0",
|
23
|
-
"babel-loader": "9.1
|
22
|
+
"babel-loader": "9.2.1",
|
24
23
|
"babel-plugin-istanbul": "7.0.0",
|
25
24
|
"eslint": "8.56.0",
|
26
25
|
"eslint-config-prettier": "9.1.0",
|
27
26
|
"eslint-plugin-prettier": "5.2.1",
|
28
|
-
"eslint-plugin-vue": "9.
|
27
|
+
"eslint-plugin-vue": "9.28.0",
|
29
28
|
"prettier": "3.3.3",
|
30
|
-
"sass": "1.
|
31
|
-
"sass-loader": "
|
29
|
+
"sass": "1.79.3",
|
30
|
+
"sass-loader": "16.0.2",
|
32
31
|
"vue-cli-plugin-vuetify": "2.5.8",
|
33
32
|
"vue-template-compiler": "2.7.16",
|
34
|
-
"webpack": "5.
|
33
|
+
"webpack": "5.95.0"
|
35
34
|
}
|
36
35
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openc3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Melton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-10-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -998,6 +998,7 @@ files:
|
|
998
998
|
- lib/openc3/migrations/20230615000000_autonomic.rb
|
999
999
|
- lib/openc3/migrations/20230915000002_no_scope_log_messages.rb
|
1000
1000
|
- lib/openc3/migrations/20231022000000_tlm_viewer_config.rb
|
1001
|
+
- lib/openc3/migrations/20240915000000_activity_uuid.rb
|
1001
1002
|
- lib/openc3/models/activity_model.rb
|
1002
1003
|
- lib/openc3/models/auth_model.rb
|
1003
1004
|
- lib/openc3/models/cvt_model.rb
|
@@ -1037,6 +1038,7 @@ files:
|
|
1037
1038
|
- lib/openc3/operators/microservice_operator.rb
|
1038
1039
|
- lib/openc3/operators/operator.rb
|
1039
1040
|
- lib/openc3/packets/binary_accessor.rb
|
1041
|
+
- lib/openc3/packets/command_validator.rb
|
1040
1042
|
- lib/openc3/packets/commands.rb
|
1041
1043
|
- lib/openc3/packets/json_packet.rb
|
1042
1044
|
- lib/openc3/packets/limits.rb
|
@@ -1124,6 +1126,7 @@ files:
|
|
1124
1126
|
- lib/openc3/utilities/bucket_require.rb
|
1125
1127
|
- lib/openc3/utilities/bucket_utilities.rb
|
1126
1128
|
- lib/openc3/utilities/cli_generator.rb
|
1129
|
+
- lib/openc3/utilities/cosmos_rails_formatter.rb
|
1127
1130
|
- lib/openc3/utilities/crc.rb
|
1128
1131
|
- lib/openc3/utilities/csv.rb
|
1129
1132
|
- lib/openc3/utilities/local_bucket.rb
|