Fix stepper step call
This MR includes the following two fixes:
-
During the stepper step call, the adjustment of step size could run into infinite loops if the parameter is too much deviated or provided step size is not appropriate. An error is returned for such case.
-
In the
PathLimitReached
aborter, theinternalLimit
could only be set at the start of thepropagate
call and cannot be changed during the propagation. This could create difficulty for a propagation instance during which the navigation direction needs to be changed, e.g. theKalmanFitter
backward filtering or surface targeting after smoothing. Thus theinternalLimit
will be used with the navigation direction to make sure it always has the right sign.