diff --git a/.gitignore b/.gitignore index 8dc4e25..0dac025 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ /othersoft/calibration_console/build/ /othersoft/shuttercali/project/LocationCali/cmake-build-debug /othersoft/calibration_console/cmake-build-debug/ +/othersoft/movingliner/cmake-build-debug/ +/othersoft/movingliner/cmake-build-debug-toweris2/ +/othersoft/movingliner/cmake-build-release/ diff --git a/othersoft/movingliner/main.cpp b/othersoft/movingliner/main.cpp index 4f4e4fb..aa813f8 100644 --- a/othersoft/movingliner/main.cpp +++ b/othersoft/movingliner/main.cpp @@ -35,10 +35,12 @@ int main(int argc, char *argv[]) { // m_qsDeviceConfig->value("LINEAR SHUTTER/Port").toString() if( m_qsDeviceConfig->value("LINEAR SHUTTER/Port").toString()=="GPIO") { + //cout1<<"ERROR number position"<value("LINEAR SHUTTER/TotalPosition").toInt(); - if (str>=positionnumber) + if (str.toInt()>=positionnumber) { cout1<<"ERROR number position"<value("LINEAR SHUTTER/Position"+str).toLongLong(); @@ -51,10 +53,10 @@ int main(int argc, char *argv[]) { system(com.toStdString().c_str()); } - QThread::sleep(500); + QThread::msleep(500); QString com="gpio write "+QString::number(targetpos)+" 1"; system(com.toStdString().c_str()); - QThread::sleep(500); + QThread::msleep(500); cout1<<"FINISH Change Shutter
"<