private bool checkSteadiness()
{
if (angleHistory.StandardDeviation > 0.13)
unstableCounter++;
else unstableCounter--;
unstableCounter = Math.Max(0, Math.Min(unstableCounter, angleHistory.Window));
bool steady = unstableCounter < angleHistory.Window;
return steady;
}