j

Fork of Motordriver by Christopher Hasler

Files at this revision

API Documentation at this revision

Comitter:
chris1996
Date:
Tue May 09 21:52:54 2017 +0000
Parent:
6:a759f92efaac
Commit message:
SpiStuff;

Changed in this revision

motortest.cpp Show diff for this revision Revisions of this file
diff -r a759f92efaac -r cd1cd85b0eb2 motortest.cpp
--- a/motortest.cpp	Tue May 09 19:35:27 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-#include "motordriver.h"
-#include "motordriver.cpp"
-
-Motor A(D6, D5, D4, 1); // pwm, fwd, rev, can break
-Motor B(D3, D7, D2, 1); // pwm, fwd, rev, can break
-int main() {
-    for (float s=-1.0; s < 1.0 ; s += 0.01) {
-       A.speed(s);
-       B.speed(s);
-       wait(0.02);
-    }
-    A.stop();
-    B.stop();
-    wait(1);
-    A.coast();
-    B.coast();
-}
\ No newline at end of file