Skip to content

Commit bc0d923

Browse files
committed
added preconditions
1 parent acc83dc commit bc0d923

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bench/physics/kalman.fpcore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
(FPCore (dt r)
22
:name "Kalman filter per K"
3+
:pre (and (< 0 dt) (< r 0))
34
; initializing matrices
45
(let ([p00 25.0]
56
[p01 0.0]
@@ -68,6 +69,7 @@
6869

6970
(FPCore (x0 x1 x2 dt r sensor)
7071
:name "Kalman filter per x"
72+
:pre (and (< 0 dt) (< r 0) (< 0 sensor))
7173
; initializing matrices
7274
(let ([p00 25.0]
7375
[p01 0.0]
@@ -145,6 +147,7 @@
145147

146148
(FPCore (dt r)
147149
:name "Kalman filter per P"
150+
:pre (and (< 0 dt) (< r 0))
148151
; initializing matrices
149152
(let ([p00 25.0]
150153
[p01 0.0]

0 commit comments

Comments
 (0)