Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: motors.cpp
- 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