void Spectrometer_Control::scan(int start, int stop, int accuracy) { emit stepperMoving(); //qDebug() << "Current start value is: " << QString::number(start) << " and current MonoPos value is: " << QString::number(MonoPos); if(start != MonoPos) { //qDebug() << "Start is not in MonoPos, moving!"; int steps = fabs(MonoPos - start); bool dir = (start - MonoPos) >= 0; // emit moveStepperToTarget(steps, dir); moveStepper(steps, dir); } emit runScan(0, fabs(stop - start), accuracy); }
void ouvrirPorte(){ moveStepper(1550); }
void fermerPorte(){ moveStepper(-1550); }
void Stepper_Control_Master::moveStepMotor(int steps, bool dir) { //qDebug() << "Motor should move from Stepper_control_master in thread " << thread(); emit moveStepper(steps, dir); }