Skip to main content
. 2018 Jan 13;18(1):212. doi: 10.3390/s18010212
Algorithm: The Algorithm for Complementary Filtering
//Complementary algorithm;
Generate Date List, Status list;
Get all the date points
ai(ax,ay,az), gi(gx, gy, gz), mi(mx,my,mz), and put them in the Date List;
Get all the status values , and put them in the Status list;
For j = 0 to Date List.num do
Get the gi out to calculate θg;
If t=kT;
β=kβ, α=(Nk)α;
Calculate Qi=αθg+βθa;
End If.