Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Nov 14, 2021
1 parent 5cdf265 commit 7a478c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/ui/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
}
Expand Down

0 comments on commit 7a478c4

Please sign in to comment.