Skip to content

Commit 005b413

Browse files
author
KhalilSelyan
committed
fix: circle no longer becomes black when speed higher than limit
Signed-off-by: KhalilSelyan <khalil@leodrive.ai>
1 parent 1aedb25 commit 005b413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/src/speed_limit_display.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void SpeedLimitDisplay::drawSpeedLimitIndicator(QPainter & painter, const QRectF
8282

8383
QColor borderColor = gray;
8484

85-
if (speed_to_limit_ratio > 0.7) {
85+
if (speed_to_limit_ratio > 0.7 && current_limit > 0.0) {
8686
// Adjust the interpolation to start more gradually
8787
// Calculate a new factor that slows down the transition
8888
double adjusted_speed_to_limit_ratio = (speed_to_limit_ratio - 0.7) / (1.0 - 0.7);

0 commit comments

Comments
 (0)