TEST_CODE_ApplyTo2V1_API
Dependencies: SDFileSystem max32630fthr USBDevice
Diff: ServoRun.cpp
- Revision:
- 4:217334c3a5b2
- Parent:
- 1:7530b7eb757a
--- a/ServoRun.cpp Mon Jun 22 05:27:48 2020 +0000 +++ b/ServoRun.cpp Tue Jul 28 01:40:05 2020 +0000 @@ -10,7 +10,7 @@ extern DigitalOut PULSE; extern DigitalOut DI; -uint32_t servo_run = 0; +float servo_run = 0; void ServoRunThread(void) { @@ -20,7 +20,8 @@ { if(servo_run) { - step = servo_run * 40; + step = servo_run * 40;//1M Stage + //step = servo_run * 30.30303030;//2M Stage while(step--) { PULSE = 1;