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:
- 6:ea6b30c4bb01
- Parent:
- 5:34ed652f8c31
- Child:
- 10:0714feaaaee1
diff -r 34ed652f8c31 -r ea6b30c4bb01 motors.cpp
--- a/motors.cpp Tue Jul 21 19:33:38 2020 +0000
+++ b/motors.cpp Sun Jul 26 09:24:31 2020 +0000
@@ -5,9 +5,10 @@
{
mot_dis();
motGauche_fwd();
- motDroite_fwd();
- drvGauche.moveLinSpeed(0.1);
- drvDroite.moveLinSpeed(0.1);
+ //motDroite_fwd();
+ motDroite_bck();
+ drvGauche.moveLinSpeed(0.05);
+ drvDroite.moveLinSpeed(0.05);
mode = 0b111; // M0, M1 et M2 sont à 1
}
@@ -46,8 +47,9 @@
drvDroite.setDir(FORWARD);
}
-// TESTS
+// FONCTIONS TESTS
+//
void test_drv()
{
mot_en();