Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] Detect anomalous measurements and report via API #36

Open
linguini1 opened this issue Oct 1, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@linguini1
Copy link
Collaborator

Problem

The ground-station-ui should have a visual indication when anomalous measurements are detected from the rocket sensors. However, such calculations should not take place on the UI. Instead, the ground-station should detect such measurements and flag them so they are easily identifiable when the UI receives JSON packets through the websocket.

Proposed Solution

Have an intermediate step of checking for anomalous readings before sending out packets over the websocket to the UI.

Alternatives

N/A at this time.

Additional Context

It's important to consider how to best store the information of which measurements are anomalous. We don't want to create much extra clutter in the JSON packets, so storing on a per-measurement basis is probable not great:
Example:

{
    "measurements": {
        "temperature": {
            "value": 10,
            "anomalous": false
        },
        "altitude": {
            "value": 10000000000000000001,
            "anomalous": true
        }
    }
}

Instead, it might be better to only record anomalous measurements using a separate key:

{
    "measurements": {
        "temperature": 10,
        "altitude": 100000000000000000001
    },
    "anomalies": [
        "altitude"
    ]
}
@linguini1 linguini1 added the enhancement New feature or request label Oct 1, 2023
@linguini1 linguini1 changed the title [ENHANCEMENT] <Detect anomalous measurements and report via API> [ENHANCEMENT] Detect anomalous measurements and report via API Oct 1, 2023
@TASelwyn TASelwyn self-assigned this Oct 2, 2023
@TASelwyn
Copy link
Contributor

TASelwyn commented Oct 6, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants