Professional Documents
Culture Documents
To detect the steps continuously I have written the code in void loop to detect
steps continuously and I have repeated the same process in the loop also.I have
taken the difference between present acceleration vector and past acceleration
vector.If the difference is greater than threshold 1.07 then step will be
incremented otherwise there is no change in the step count. To find the difference
between the present acceleration vector and past acceleration vector continuosly I
have assigned the present acceleration vector value to past acceleration vector
value because of that in the next iteration it will find the differnce between
present and immediate past acceleration vector difference only.