bench mode: live camera via thermald, blinking telemetry indicator
- Unblocked thermald and camerad — thermald manages CPU cores and reads fake pandaStates for ignition, bench no longer publishes deviceState - camerad starts with live camera feed on bench - Force nvg->update() every frame for HUD repaint without camera dependency - Blue blinking telemetry circle uses getBool pattern - camerad debug logging for startup diagnostics Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -76,6 +76,7 @@ void OnroadWindow::updateState(const UIState &s) {
|
||||
alerts->updateAlert(alert);
|
||||
|
||||
nvg->updateState(s);
|
||||
nvg->update(); // CLEARPILOT: force repaint every frame for HUD elements
|
||||
|
||||
QColor bgColor = bg_colors[s.status];
|
||||
if (paramsMemory.getBool("no_lat_lane_change") == 1) {
|
||||
@@ -403,13 +404,13 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) {
|
||||
Hardware::set_display_power(true);
|
||||
}
|
||||
|
||||
// CLEARPILOT: blinking red circle when telemetry is recording
|
||||
if (Params().get("TelemetryEnabled") == "1") {
|
||||
// CLEARPILOT: blinking blue circle when telemetry is recording
|
||||
if (Params().getBool("TelemetryEnabled")) {
|
||||
// Blink: visible for 500ms, hidden for 500ms
|
||||
int phase = (QDateTime::currentMSecsSinceEpoch() / 500) % 2;
|
||||
if (phase == 0) {
|
||||
p.setPen(Qt::NoPen);
|
||||
p.setBrush(QColor(220, 30, 30));
|
||||
p.setBrush(QColor(30, 100, 220));
|
||||
p.drawEllipse(width() - 150, 50, 100, 100);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user