Solve mini pillar widening in DefaultWideningStrategy

This commit is contained in:
tamasmeszaros 2022-12-06 13:50:12 +01:00
parent 58acc893b3
commit d4a46d373a

View file

@ -723,7 +723,7 @@ struct DefaultWideningModel {
"DefaultWideningModel is not a widening function");
double w = WIDENING_SCALE * sm.cfg.pillar_widening_factor * len;
return src.R + w;
return std::max(src.R, sm.cfg.head_back_radius_mm) + w;
};
};