Revert "Update annotated_camera.cc"

This reverts commit 4643b3878b.
This commit is contained in:
huifan 2024-11-06 19:05:17 +08:00
parent ccbc1f6bbd
commit 5fc385893f
1 changed files with 7 additions and 7 deletions

View File

@ -872,14 +872,14 @@ void AnnotatedCameraWidget::drawLead(QPainter &painter, const cereal::RadarState
if (leadInfo) {
float lead_speed = std::max(v_rel + v_ego, 0.0f);
////////////////////////////////////////////////////////////////////////
// distance = d_rel;
// paramsMemory.putInt("leadspeeddiffProfile", (v_rel * speedConversion));
distance = d_rel;
paramsMemory.putInt("leadspeeddiffProfile", (v_rel * speedConversion));
// if (distance < 10 || v_ego < 10){
// paramsMemory.putInt("leaddisProfile", 0);
// paramsMemory.putInt("leadspeedProfile", 0);
// paramsMemory.putInt("leadspeeddiffProfile", 0);
// }
if (distance < 10 || v_ego < 10){
paramsMemory.putInt("leaddisProfile", 0);
paramsMemory.putInt("leadspeedProfile", 0);
paramsMemory.putInt("leadspeeddiffProfile", 0);
}
////////////////////////////////////////////////////////////////////////
painter.setPen(Qt::white);
painter.setFont(InterFont(35, QFont::Normal));