From f6f73acb7cb5f9244b4765d725a80fcfbcd052bc Mon Sep 17 00:00:00 2001 From: Alan Gibson Date: Wed, 31 Jan 2024 18:06:40 -0500 Subject: [PATCH] Added example redis config and made it the example metafile --- onair/config/redis_example.ini | 2 +- .../redis_example_CONFIG.json | 89 +++++++++++++++++++ 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 onair/data/telemetry_configs/redis_example_CONFIG.json diff --git a/onair/config/redis_example.ini b/onair/config/redis_example.ini index 773624df..0fe4a25c 100644 --- a/onair/config/redis_example.ini +++ b/onair/config/redis_example.ini @@ -2,7 +2,7 @@ TelemetryDataFilePath = onair/data/raw_telemetry_data/data_physics_generation/Errors TelemetryFile = 700_crash_to_earth_1.csv TelemetryMetadataFilePath = onair/data/telemetry_configs/ -MetaFile = data_physics_generation_CONFIG.json +MetaFile = redis_example_CONFIG.json ParserFileName = onair/data_handling/redis_adapter.py KnowledgeRepPluginDict = {'generic':'plugins/generic/__init__.py'} diff --git a/onair/data/telemetry_configs/redis_example_CONFIG.json b/onair/data/telemetry_configs/redis_example_CONFIG.json new file mode 100644 index 00000000..da43e8f0 --- /dev/null +++ b/onair/data/telemetry_configs/redis_example_CONFIG.json @@ -0,0 +1,89 @@ +{ + "subsystems": { + "NONE": { + "Time": { + "conversion": "", + "tests": { + "NOOP": "[]" + }, + "description": "No description" + }, + "THRUST": { + "conversion": "", + "tests": { + "FEASIBILITY": "[-999999999999999, 999999999999999]" + }, + "description": "No description" + }, + "ALTITUDE": { + "conversion": "", + "tests": { + "FEASIBILITY": "[-999999999999999, 999999999999999]" + }, + "description": "No description" + }, + "ACCELERATION": { + "conversion": "", + "tests": { + "FEASIBILITY": "[-20.1111, 20.1111]" + }, + "description": "No description" + }, + "SCIENCE_COLLECTION": { + "conversion": "", + "tests": { + "FEASIBILITY": "[-0.9999, 1.1111]" + }, + "description": "No description" + }, + "LABEL_ERROR_STATE": { + "conversion": "", + "tests": { + "NOOP": "[]" + }, + "description": "No description" + } + }, + "POWER": { + "VOLTAGE": { + "conversion": "", + "tests": { + "FEASIBILITY": "[12.9999, 18.1111]" + }, + "description": "No description" + }, + "CURRENT": { + "conversion": "", + "tests": { + "FEASIBILITY": "[2.9999, 5.1111]" + }, + "description": "No description" + } + }, + "THERMAL": { + "TEMPERATURE": { + "conversion": "", + "tests": { + "FEASIBILITY": "[9.9999, 90.1111]" + }, + "description": "No description" + } + } + }, + "redis_subscriptions": [ + "vehicle_0_state", + "vehicle_1_state", + "vehicle_2_state" + ], + "order": [ + "Time", + "VOLTAGE", + "CURRENT", + "THRUST", + "ALTITUDE", + "ACCELERATION", + "TEMPERATURE", + "SCIENCE_COLLECTION", + "LABEL_ERROR_STATE" + ] +} \ No newline at end of file