Skip to content

Commit

Permalink
Fix jacobian bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Sep 16, 2020
1 parent 25a9c31 commit f7e3296
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ControllerBlocks.f90
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,16 @@ SUBROUTINE WindSpeedEstimator(LocalVar, CntrPar, objInst, PerfData, DebugVar)

! Update Jacobian
F(1,1) = A_op
F(1,2) = 1.0/(2.0*CntrPar%WE_Jtot) * CntrPar%WE_RhoAir * PI *CntrPar%WE_BladeRadius**2.0 * Cp_op * 3.0 * v_h**2.0 * 1.0/om_r
F(1,3) = 1.0/(2.0*CntrPar%WE_Jtot) * CntrPar%WE_RhoAir * PI *CntrPar%WE_BladeRadius**2.0 * Cp_op * 3.0 * v_h**2.0 * 1.0/om_r
F(2,2) = PI * v_m/(2.0*L)
F(2,3) = PI * v_t/(2.0*L)

F(1,2) = 1.0/(2.0*CntrPar%WE_Jtot) * CntrPar%WE_RhoAir * PI *CntrPar%WE_BladeRadius**2.0 * 1/om_r * 3.0 * Cp_op * v_h**2.0
F(1,3) = 1.0/(2.0*CntrPar%WE_Jtot) * CntrPar%WE_RhoAir * PI *CntrPar%WE_BladeRadius**2.0 * 1/om_r * 3.0 * Cp_op * v_h**2.0
F(2,2) = - PI * v_m/(2.0*L)
F(2,3) = - PI * v_t/(2.0*L)
! Update process noise covariance
Q(1,1) = 0.00001
Q(2,2) =(PI * (v_m**3.0) * (Ti**2.0)) / L
Q(3,3) = (2.0**2.0)/600.0

! Prediction update
Tau_r = AeroDynTorque(LocalVar,CntrPar,PerfData)
a = PI * v_m/(2.0*L)
Expand Down

0 comments on commit f7e3296

Please sign in to comment.