From 7a478c435a0913e09512801309cf52654f3e17ac Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Sat, 13 Nov 2021 20:27:09 -0600 Subject: [PATCH] fix --- selfdrive/ui/ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index f737d91117abb0c..c152dc30caf1d57 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -50,7 +50,7 @@ static void update_leads(UIState *s, const cereal::ModelDataV2::Reader &model) { float z = model_position.getZ()[get_path_length_idx(model_position, leads[i].getX()[0])]; calib_frame_to_full_frame(s, leads[i].getX()[0], leads[i].getY()[0], z + 1.22, &s->scene.lead_vertices[i]); } else if (i == 0 && v_ego < 4. && lead_one_radar.getStatus()) { - calib_frame_to_full_frame(s, lead_one_radar.getDRel(), leads[i].getYRel(), 1.22, &s->scene.lead_vertices[i]); + calib_frame_to_full_frame(s, lead_one_radar.getDRel(), lead_one_radar.getYRel(), 1.22, &s->scene.lead_vertices[i]); } } }