nightrider mode improvements, nice monitor, ready text 1x

- Nightrider: lines 1px wider (3px outline), engagement border hidden,
  planner lines hidden when disengaged, stay on onroad view in park
- Normal mode only: return to ready splash on park
- Ready text sprite at native 1x size
- Nice monitor: keeps claude processes at nice 19, runs every 30s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 23:24:37 -05:00
parent c33e155c56
commit 698a1647a0
5 changed files with 54 additions and 12 deletions

View File

@@ -74,10 +74,9 @@ void ReadyWindow::paintEvent(QPaintEvent *event) {
// "READY!" 8-bit text sprite, 2x size, 15% below center
static QPixmap ready_text("/data/openpilot/selfdrive/clearpilot/theme/clearpilot/images/ready_text.png");
if (!ready_text.isNull()) {
QPixmap scaled = ready_text.scaled(ready_text.width() * 3 / 2, ready_text.height() * 3 / 2, Qt::KeepAspectRatio, Qt::FastTransformation);
int tx = (width() - scaled.width()) / 2;
int tx = (width() - ready_text.width()) / 2;
int ty = height() / 2 + height() * 15 / 100;
painter.drawPixmap(tx, ty, scaled);
painter.drawPixmap(tx, ty, ready_text);
}
} else {
// Error state: red text at 25% below center