changed motor test

This commit is contained in:
shrkey
2016-10-10 20:07:43 +01:00
parent 4d52e029e5
commit 1c5c0cfa86

View File

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