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

Add color codes for enum telemetry #133

Open
timcanham opened this issue Jul 2, 2022 · 0 comments
Open

Add color codes for enum telemetry #133

timcanham opened this issue Jul 2, 2022 · 0 comments
Labels
proposed feature A proposed new feature

Comments

@timcanham
Copy link

timcanham commented Jul 2, 2022

For FPP, an enumeration looks like this:

enum Decision { YES, NO, MAYBE }

Telemetry already has a notion of color codes for scalars:

@ Telemetry channel 1
  telemetry Channel1: U32 \
    low { red 0, orange 1, yellow 2 }

There are cases where it would be very useful to color-highlight enumeration values in telemetry in the ground system.

For example:

enum AlarmLevel {NOMINAL, WARNING, CRITICAL}

An update to the telemetry channel definition to accommodate this could look like:

@ Alarm telemetry
  telemetry HeaterAlarm:  AlarmLevel \
    color { orange WARNING, red CRITICAL }

enumeration values not specified would have the default color.

There is currently no support in the XML for this.

@timcanham timcanham added the proposed feature A proposed new feature label Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposed feature A proposed new feature
Projects
None yet
Development

No branches or pull requests

1 participant