NASA-AMMOS / NASA-AMMOS/AIT-Core

Add derivation defintions and values to OpenMCT plugin

Open
#501 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
56
Forks
35
Avg merge
1d 20h
Merged PRs (30d)
3

Description

Issue: OpenMCT plugin only sends a packet's fields, but not its derivations.

Fix: Update OpenMct to include derivations in both

  1. the telemetry dictionary definition
  2. a packet instance

More details:


  1. Update the section that converts to the telemetry dictionary into an OpenMCT JSON structure
    https://github.com/NASA-AMMOS/AIT-Core/blob/184d8bec62c274627ffd1bc488f4e70555caf8e7/ait/core/server/plugins/openmct.py#L215

I suspect there is enough commonality between fields and derivation objects (name, units, type) that you could just add another loop that iterates over a packet-def’s derivationmap, almost a parallel of what it does for fieldmap:
https://github.com/NASA-AMMOS/AIT-Core/blob/184d8bec62c274627ffd1bc488f4e70555caf8e7/ait/core/server/plugins/openmct.py#L226


  1. Update the section that converts a telemetry packet
    https://github.com/NASA-AMMOS/AIT-Core/blob/184d8bec62c274627ffd1bc488f4e70555caf8e7/ait/core/server/plugins/openmct.py#L207

Similar to part 1, add a second loop the parallels fieldmap but for derivationmap.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in ait/core/server/plugins/openmct.py at the telemetry packet conversion around line 207 and the telemetry dictionary conversion around line 215. Read the existing fieldmap loops and inspect the packet definition's derivationmap. Done means derivation definitions appear in the OpenMCT telemetry dictionary and derivation values appear in each converted packet instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.