IUT CACHAN
/
codeursMecatro
Codeurs MECATRO
Revision 1:ac5eb2de660e, committed 2021-03-25
- 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)