diff --git a/.gitignore b/.gitignore index cdd4578..3bc1e61 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ *.zip build/ *.log +*.pyc +racs/uc/buid diff --git a/racs/qt/mainwindow.ui b/racs/qt/mainwindow.ui index 5ba3f6a..2e7b1ed 100644 --- a/racs/qt/mainwindow.ui +++ b/racs/qt/mainwindow.ui @@ -39,6 +39,12 @@ 1000 + + 5 + + + 20 + Qt::Horizontal @@ -58,6 +64,12 @@ 1000 + + 5 + + + 20 + Qt::Horizontal @@ -77,6 +89,12 @@ 1000 + + 5 + + + 20 + Qt::Horizontal @@ -96,6 +114,12 @@ 1000 + + 5 + + + 20 + Qt::Horizontal @@ -115,6 +139,12 @@ 1000 + + 5 + + + 20 + Qt::Horizontal @@ -134,6 +164,12 @@ 1000 + + 5 + + + 20 + Qt::Horizontal diff --git a/racs/uc/RobotArm_RACSQT.c b/racs/uc/RobotArm_RACSQT.c index f7ec03c..3e36cc8 100644 --- a/racs/uc/RobotArm_RACSQT.c +++ b/racs/uc/RobotArm_RACSQT.c @@ -50,7 +50,7 @@ int main(void) char recbuf[16]; uint8_t bufpos = 0; - uint8_t servospeed = 3; // The speed (Fast 0 ...... 10 slow) + uint8_t servospeed = 0; // The speed (Fast 0 ...... 10 slow) int verbose = 0; // --------------------------------------- // Main loop: @@ -102,7 +102,10 @@ int main(void) writeString_P("\n"); } - s_Move(servonum, servopos, servospeed); + if(0 == servospeed) + Move(servonum, servopos); + else + s_Move(servonum, servopos, servospeed); bufpos = 0; continue;