grid: The time difference is now initialized to dt_ref for reference trajectory caching
parent
0b28d45590
commit
aef38d0ccc
|
@ -58,6 +58,7 @@ corbo::GridUpdateResult FullDiscretizationGridBaseSE2::update(const Eigen::Vecto
|
|||
// check if we need to cache the reference trajectory values // TODO(roesmann): we could restrict this to new_run==true only as long as we do not
|
||||
// have a grid resize...
|
||||
int n = std::max(std::max(getNRef(), getN()), _n_adapt);
|
||||
if (_dt.value() <= 0) _dt.value() = _dt_ref; // initialize _dt to _dt_ref in case it has not been optimized before
|
||||
if (!xref.isCached(getDt(), n, t)) xref.precompute(getDt(), n, t);
|
||||
if (!uref.isCached(getDt(), n, t)) uref.precompute(getDt(), n, t);
|
||||
if (sref && !sref->isCached(getDt(), n, t)) sref->precompute(getDt(), n, t);
|
||||
|
|
Loading…
Reference in New Issue