diff --git a/selfdrive/modeld/models/driving.cc b/selfdrive/modeld/models/driving.cc index 8bb46ee0a3..f7a72b34e1 100644 --- a/selfdrive/modeld/models/driving.cc +++ b/selfdrive/modeld/models/driving.cc @@ -253,17 +253,18 @@ void fill_model(cereal::ModelDataV2::Builder &framed, const ModelDataRaw &net_ou // plan const float *best_plan = get_plan_data(net_outputs.plan); float plan_t_arr[TRAJECTORY_SIZE]; + std::fill_n(plan_t_arr, TRAJECTORY_SIZE, NAN); plan_t_arr[0] = 0.0; - int xidx = 1, tidx = 0; - for (; xidx