|
|
@ -57,7 +57,6 @@ void update_leads(UIState *s, const cereal::RadarState::Reader &radar_state, con |
|
|
|
void update_line_data(const UIState *s, const cereal::ModelDataV2::XYZTData::Reader &line, |
|
|
|
void update_line_data(const UIState *s, const cereal::ModelDataV2::XYZTData::Reader &line, |
|
|
|
float y_off, float z_off, QPolygonF *pvd, int max_idx, bool allow_invert=true) { |
|
|
|
float y_off, float z_off, QPolygonF *pvd, int max_idx, bool allow_invert=true) { |
|
|
|
const auto line_x = line.getX(), line_y = line.getY(), line_z = line.getZ(); |
|
|
|
const auto line_x = line.getX(), line_y = line.getY(), line_z = line.getZ(); |
|
|
|
|
|
|
|
|
|
|
|
QPolygonF left_points, right_points; |
|
|
|
QPolygonF left_points, right_points; |
|
|
|
left_points.reserve(max_idx + 1); |
|
|
|
left_points.reserve(max_idx + 1); |
|
|
|
right_points.reserve(max_idx + 1); |
|
|
|
right_points.reserve(max_idx + 1); |
|
|
|