propagateWhileValid
Class: nav.StatePropagator
Package: nav
Syntax
[q,u,steps] = propagateWhileValid(spObj,q0,u0,qTgt,maxSteps)
Description
[
iteratively propagates the system from the current state q
,u
,steps
] = propagateWhileValid(spObj
,q0
,u0
,qTgt
,maxSteps
)q0
towards a
target state qTgt
with an initial control input
u0
for a maximum number of steps maxSteps
. All
propagations are validated and the function returns system information between
q0
and the last valid state.
At the end of each propagation step i, the system returns:
q(i,:)
— Current state of the systemu(i,:)
— Control input for step i+1steps(i)
— Number of steps between i-1 and i
Input Arguments
Output Arguments
Version History
Introduced in R2021b