From 1c5c0cfa86ebb7d33edd9ef500bdbc90f97fe8b7 Mon Sep 17 00:00:00 2001 From: shrkey Date: Mon, 10 Oct 2016 20:07:43 +0100 Subject: [PATCH] changed motor test --- examples/Motor/Motor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/Motor/Motor.cpp b/examples/Motor/Motor.cpp index 887a9b5..d09dd6c 100644 --- a/examples/Motor/Motor.cpp +++ b/examples/Motor/Motor.cpp @@ -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 ); }