Skip to content

Commit 1e74323

Browse files
committed
debug: add parentheses in short-circuited AND
1 parent 3030601 commit 1e74323

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/estimator/mhe/execute.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function init_estimate_cov!(estim::MovingHorizonEstimator, _ , d0, u0)
1010
estim.H̃ .= 0
1111
estim.q̃ .= 0
1212
estim.r .= 0
13-
estim.direct && estim.U0[1:estim.model.nu] .= u0 # add u0(-1) to the data windows
13+
estim.direct && (estim.U0[1:estim.model.nu] .= u0) # add u0(-1) to the data windows
1414
estim.D0[1:estim.model.nd] .= d0 # add d0(-1) to the data windows
1515
estim.lastu0 .= u0
1616
# estim.cov.P̂_0 is P̂(-1|-1) if estim.direct==false, else P̂(-1|0)

0 commit comments

Comments
 (0)