This commit is contained in:
Your Name
2024-05-03 09:03:38 -05:00
parent f70ca7178d
commit 83155a30b9
2 changed files with 35 additions and 72 deletions

View File

@@ -125,8 +125,12 @@ typedef enum UIStatus {
STATUS_ALWAYS_ON_LATERAL_ACTIVE,
STATUS_TRAFFIC_MODE_ACTIVE,
STATUS_EXPERIMENTAL_ACTIVE,
CENTER_LANE_COLOR,
} UIStatus;
const float CENTER_LANE_ALPHA = 0.35;
const float OTHER_LANE_ALPHA = 0.75;
// Clearpilot custom colors
const QColor bg_colors [] = {
[STATUS_DISENGAGED] = QColor(0x17, 0x33, 0x49, 0xc8),
@@ -135,6 +139,7 @@ const QColor bg_colors [] = {
[STATUS_ALWAYS_ON_LATERAL_ACTIVE] = QColor(162, 221, 235, 0xd1), // Gray
[STATUS_TRAFFIC_MODE_ACTIVE] = QColor(0xc9, 0x22, 0x31, 0xd1), // ? unused?
[STATUS_EXPERIMENTAL_ACTIVE] = QColor(201, 41, 204, 0xd1), // Magenta
[CENTER_LANE_COLOR] = QColor(150, 150, 150, 0xd1), // Gray
};
static std::map<cereal::ControlsState::AlertStatus, QColor> alert_colors = {