Codeurs MECATRO

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
iut_cachan01
Date:
Thu Mar 25 07:12:17 2021 +0000
Parent:
0:f462be86dc4a
Commit message:
Correction methode reset. V1.1

Changed in this revision

codeurs.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r f462be86dc4a -r ac5eb2de660e codeurs.cpp
--- a/codeurs.cpp	Wed Mar 24 15:20:01 2021 +0000
+++ b/codeurs.cpp	Thu Mar 25 07:12:17 2021 +0000
@@ -32,6 +32,10 @@
 {
     char data[2] = {0, 1};
     _i2c.write(_address, data, 2);
+    _gauche = 0;
+    _droit = 0;
+    _g16 = 0;
+    _d16 = 0;    
 }
 
 void Codeurs::read(int32_t &gauche, int32_t &droit)