parent
ccbc1f6bbd
commit
5fc385893f
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue