We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb1376 commit 3d7dabeCopy full SHA for 3d7dabe
common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/src/steering_wheel_display.cpp
@@ -106,6 +106,11 @@ void SteeringWheelDisplay::drawSteeringWheel(
106
}
107
108
QString steeringAngleString = QString::fromStdString(steering_angle_ss.str());
109
+ // if the string doesn't have a negative sign, add a space to the front of the string
110
+ // to align the text in both cases (negative and positive)
111
+ if (steeringAngleString[0] != '-') {
112
+ steeringAngleString = " " + steeringAngleString;
113
+ }
114
115
// Draw the steering angle text
116
QFont steeringFont("Quicksand", 8, QFont::Bold);
0 commit comments