Commit 007d84b7 authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter
Browse files

added rescue function for HRTFArc

parent 5a573c85
...@@ -271,6 +271,37 @@ classdef test_itaEimarMotorControl < itaMeasurementTasksScan ...@@ -271,6 +271,37 @@ classdef test_itaEimarMotorControl < itaMeasurementTasksScan
end end
end end
function rescueArcFromSwitch(this)
% this function is intended for the HRTFArc when it is stuck
% between the two switches.
% this can happen if "prepareForContinuousRotation" is called
% and the run function does not move the arc back over the
% reference switch
% this function will disable the reference switch, move the arc
% over it and enable it again.
% only call this, if you know why you are doing it.
motor = this.mMotorControl.motorList{1};
name = motor.getMotorName;
if ~strcmp(name,'HRTFArc')
error('Only for HRTFArc');
prompt = 'Type "''RESCUE''" and press return ';
x = input(prompt);
if ~strcmp(x,'RESCUE')
error('Aborted due to wrong string');
function motorControl = getMotorControl(this) function motorControl = getMotorControl(this)
motorControl = this.mMotorControl; motorControl = this.mMotorControl;
end end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment