From 3f09b8d9a13b32bd1acd15d40a4465d6c49bee29 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Sat, 18 Feb 2023 00:58:13 -0800 Subject: [PATCH] adjustments --- selfdrive/ui/qt/onroad.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index 30b1b794b7..976a283110 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -584,8 +584,8 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) { float saturation = lerp(0, 1, pow(std::abs(3 * acceleration_future), 2) / 3); // float saturation = pow(std::abs(acceleration_future), 2); saturation = saturation > 1 ? 1. : saturation; - float lightness = lerp(0.9, 0.72, saturation); - lightness = lerp(0.56, 0.88, lin_grad_point); + float lightness = lerp(0.95, 0.62, saturation); +// lightness = lerp(0.56, 0.88, lin_grad_point); // float alpha_lerp = (lin_grad_point - 0.5) * 2; // ramp alpha down from 0.4 when point reached 0.5 // float alpha = lerp(0.4, 0, alpha_lerp > 0 ? alpha_lerp : 0); // float alpha = interp1d(lin_grad_point, max_gradient_point / 2., max_gradient_point, 0.4, 0.0); // looks cool, but fades off too early