mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-26 14:53:54 +08:00
sometimes never goes into the loop
This commit is contained in:
@@ -149,7 +149,7 @@ static void ui_draw_line(UIState *s, const vertex_data *v, const int cnt, NVGcol
|
||||
static void update_track_data(UIState *s, const cereal::ModelDataV2::XYZTData::Reader &line, track_vertices_data *pvd) {
|
||||
const UIScene *scene = &s->scene;
|
||||
const float off = 0.5;
|
||||
int max_idx;
|
||||
int max_idx = 0;
|
||||
float lead_d;
|
||||
if(s->sm->updated("radarState")) {
|
||||
lead_d = scene->lead_data[0].getDRel()*2.;
|
||||
|
||||
Reference in New Issue
Block a user