Checking contact state is stable or not

sampling time is 0.2sec and check all the series values to decide stance phase