Skip to content

[Thermometer] - thermometer coloring should use hsl #156

@bracyw

Description

@bracyw

Description

Currently we use a hardcoded transition, using ternary operators from of colors for the thermometer. Instead we should use calculated values to have a smooth transition of colors, using hsl.

Acceptance Criteria

  • Calculated values using hsl for color of thermometer.
  • Colors are roughly the same as before (with exception of tiny difference because of the transitioning)

Proposed Solution

This is all in the NERODevelopment/content/Thermometer.qml file on around line 15.

We implement in a similar way in Argos: https://github.com/Northeastern-Electric-Racing/Argos/blob/f1c38737db5a4e21432018f78ca7e74f12625932/angular-client/src/pages/bms-debug-page/components/cell-by-cell-heat-map/cell-by-cell-heat-map.component.ts#L100

(same concept applies, calculate hsl value based on value, also you may add something to inversion which needed)

Mocks

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions