PSL_2021 / servomotor_MX12_Lorenzo

Dependents:   PSL_ROBOT_lorenzo robot_lorenzo recepteur_mbed_os_6

Files at this revision

API Documentation at this revision

Comitter:
martinr
Date:
Wed Jun 15 13:04:37 2022 +0000
Parent:
31:e48d21e28023
Commit message:
zfev

Changed in this revision

MX12.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MX12.cpp	Fri Mar 11 11:01:20 2022 +0000
+++ b/MX12.cpp	Wed Jun 15 13:04:37 2022 +0000
@@ -378,17 +378,8 @@
     char data[2];
     data[1] = 0;
     data[0] = 0;
-    _bus_state = SerialState::Writing;
-    rw(1, CONTROL_TABLE_CW_ANGLE_LIMIT, 2, data);
-    rw(2, CONTROL_TABLE_CW_ANGLE_LIMIT, 2, data);
-    rw(3, CONTROL_TABLE_CW_ANGLE_LIMIT, 2, data);
 
 
-    _bus_state = SerialState::Writing;
-    rw(1, CONTROL_TABLE_CCW_ANGLE_LIMIT, 2, data);
-    rw(2, CONTROL_TABLE_CCW_ANGLE_LIMIT, 2, data);
-    rw(3, CONTROL_TABLE_CCW_ANGLE_LIMIT, 2, data);
-
     float W1;
     float W2;
     float W3;