Example not working
Closed this issue · 3 comments
imp-guru commented
Hi,
I get two errors when trying the example, first is:
Uncaught ReferenceError: R_k is not defined
That one was easy enough to fix by changing line 59 to:
function KalmanObservation(z_k,H_k,R_k){
But then there is the following error:
Uncaught TypeError: Cannot read property '1' of undefined
it traces to line 49:
this.K_k = this.P_k_k_.x(o.H_k.transpose().x(this.S_k.inverse()));//Optimal Kalman gain
I tried to trace it back but no luck yet, thoughts?
mairead commented
I've got the same error :
Uncaught ReferenceError: R_k is not defined
Am wondering if R_k should be Q_k, or if they should both R_k and Q_k are required?
itamarwe commented
mairead commented
Sorry, I think mine was just a typo. I had Q_k defined in the observation by mistake.