private void Update() { NodeAngleChecker.Update(); if (onPaused) { onPaused = false; Calibrate(CalibrationType.FullCalibration); } UpdatePressing(); TryCalibrate(); }
private void Update() { NodeAngleChecker.Update(); if (onPaused) { onPaused = false; if (Settings.CalibrateOnResume) { Calibrate(CalibrationType.FullCalibration); } } UpdatePressing(); TryCalibrate(); }
private void ResetCalibration() { bool wasLeftReverted = FinchCore.Interop.FinchIsUpperArmReverted(FinchCore.Interop.FinchChirality.Left) == 1; bool wasRightReverted = FinchCore.Interop.FinchIsUpperArmReverted(FinchCore.Interop.FinchChirality.Right) == 1; FinchCore.ResetCalibration(FinchChirality.Both); if (wasLeftReverted) { FinchCore.Interop.FinchRevertUpperArm(FinchCore.Interop.FinchChirality.Left); } if (wasRightReverted) { FinchCore.Interop.FinchRevertUpperArm(FinchCore.Interop.FinchChirality.Right); } FinchCore.Update(); NodeAngleChecker.Update(); }