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

Rework guages & indicators #126

Open
scudderfish opened this issue Oct 19, 2012 · 0 comments
Open

Rework guages & indicators #126

scudderfish opened this issue Oct 19, 2012 · 0 comments
Assignees
Milestone

Comments

@scudderfish
Copy link
Owner

The current implementation of gauges is too inflexible and needs nuking from orbit.

  • An ecu defines a list of OutputChannels
  • An OC is connected to an Indicator. This is a View subclass. It is given an area it can draw in. It maintains the min/max/warning/danger values. It does not draw itself
  • An indicator owns a Renderer and delegates drawing responsibility to it
  • There are many subclasses to Renderer for Text, Numeric, LED, Gauge, Bar, Histogram
  • An Indicator can change Renderer at runtime
  • (Optional) Additional data sources can throw extra OutputChannels into the mix, such as GPS, accelerometers, magnetometers etc
  • (Optional) MSL logging becomes a dump of all available OutputChannels.

This will fix #109

@ghost ghost assigned scudderfish Oct 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant