Test

Dependencies:   mbed DRV8825

Revision:
3:3ba377aafdfd
Parent:
1:2fe8c402ee79
Child:
4:ad9b7355332e
--- a/motors.cpp	Thu Jul 09 21:03:01 2020 +0000
+++ b/motors.cpp	Wed Jul 15 17:51:04 2020 +0000
@@ -5,16 +5,6 @@
     mot_dis();
 }
 
-void test_drv(){
-    mot_en();
-    motGauche_fwd();
-    drvGauche.move(1);  
-    wait(2);
-    motGauche_bck();
-    wait(2);
-    mot_dis();
-}
-
 // ENABLE/DISABLE // Les deux modules ont le même enable
 void mot_en(){
     drvGauche.setEnable(START);
@@ -42,4 +32,20 @@
 
 void motDroite_bck(){
     drvDroite.setDir(BACKWARD);
+}
+
+// TESTS
+
+void test_drv(){
+    mot_en();
+    motGauche_fwd();
+    drvGauche.moveLinSpeed(1);  
+    wait(2);
+    motGauche_bck();
+    wait(2);
+    mot_dis();
+}
+
+void testAngle(int cmdAngle){
+    
 }
\ No newline at end of file