Skip to content

Commit

Permalink
forward more arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Dec 11, 2024
1 parent 747628e commit 9c98b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ukf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ function UnscentedKalmanFilter{IPD,IPM,AUGD,AUGM}(dynamics, measurement_model::A
dynamics, measurement_model, R1, d0, predict_sigma_point_cache, x0, R, 0, Ts, ny, nu, p, reject, state_mean, state_cov)
end

function UnscentedKalmanFilter{IPD,IPM,AUGD,AUGM}(dynamics, measurement, R1, R2, d0=SimpleMvNormal(R1), args...; p = NullParameters(), ny, nu, kwargs...) where {IPD,IPM,AUGD,AUGM}
function UnscentedKalmanFilter{IPD,IPM,AUGD,AUGM}(dynamics, measurement, R1, R2, d0=SimpleMvNormal(R1), args...; Ts = 1.0, p = NullParameters(), ny, nu, kwargs...) where {IPD,IPM,AUGD,AUGM}
nx = length(d0)
T = promote_type(eltype(d0), eltype(R1), eltype(R2))
measurement_model = UKFMeasurementModel{T,IPM,AUGM}(measurement, R2; nx, ny, kwargs...)
UnscentedKalmanFilter{IPD,IPM,AUGD,AUGM}(dynamics, measurement_model, R1, d0, args...; p, nu, kwargs...)
UnscentedKalmanFilter{IPD,IPM,AUGD,AUGM}(dynamics, measurement_model, R1, d0, args...; Ts, p, nu, kwargs...)
end


Expand Down

0 comments on commit 9c98b3a

Please sign in to comment.