seconds change

This commit is contained in:
shrkey
2016-10-09 22:28:43 +01:00
parent 31ea5623c5
commit af917c9174

View File

@@ -27,18 +27,18 @@ int main()
DW640 dw; DW640 dw;
dw.initialize(); dw.initialize();
dw.setMotorOff( 1 ); dw.setMotorSpeed( 1, 0 );
printf("forward\n"); printf("forward\n");
dw.setMotorSpeed( 1, 200 ); dw.setMotorSpeed( 1, 200 );
sleep(5); usleep(5000000);
printf("stop\n"); printf("stop\n");
dw.setMotorOff( 1 ); dw.setMotorSpeed( 1, 0 );
sleep(5); usleep(5000000);
printf("reverse\n"); printf("reverse\n");
dw.setMotorSpeed( 1, -200 ); dw.setMotorSpeed( 1, -200 );
sleep(5); usleep(5000000);
printf("stop\n"); printf("stop\n");
dw.setMotorOff( 1 ); dw.setMotorSpeed( 1, 0 );
} }