Skip to main content
. 2018 Jul 14;18(7):2282. doi: 10.3390/s18072282
Algorithm 1. Gradient descent-based orientation filter.
h^q,tE=q^t1mq,tSq^t11
m^q,tE=[00(h^x,tE)2+(h^y,tE)2h^z,tE]T
Ft=[q^t11aq,tEq^t1aq,tSq^t11mq,tEq^t1mq,tS]
q^e,t=JtTFt, where Jt is the Jacobian matrix of Ft.
ω^e,ts=2q^t1q^e,t
ω^˙b,tS=ωe,tS
ω^tS=ωtSζSωb,t where ζS is the integral gain
q^˙t=12q^t1ω^q,tSβq^e,tq^e,t
β is the divergence rate of qt expressed as the magnitude of quaternion derivative corresponding to the gyroscope measurement error.
qe,ωe are the quaternion and angular rate errors.