User Tools

Site Tools


lego_dynamixel_control_xl320

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
lego_dynamixel_control_xl320 [2019/06/06 22:56] – [Preliminaries] ntorresreyeslego_dynamixel_control_xl320 [2019/06/06 23:03] (current) – [NXC Code] ntorresreyes
Line 229: Line 229:
 The NXC code files as well as the header file is included below in a .zip file: The NXC code files as well as the header file is included below in a .zip file:
 \\ \\
-{{:torres:tutorials:nxt_dynamixel:xl320_code.zip|}}+{{:torres:xl320_codev2.zip|}}
 \\ \\
 **Controlling Multiple Dynamixels** **Controlling Multiple Dynamixels**
Line 239: Line 239:
 </code> </code>
 \\ \\
-Next, each Dynamixel should be initialized with the "SetMode()" function. 
-<code> 
-SetMode(ID1, SERVO, minAngle1, maxAngle1); 
-SetMode(ID2, SERVO, minAngle2, maxAngle2); 
-</code> 
 \\ \\
 Finally, when using the "Servo()" function, make sure the correct ID for the correct Dynamixel is used. Finally, when using the "Servo()" function, make sure the correct ID for the correct Dynamixel is used.
Line 279: Line 274:
   Wait(10);   Wait(10);
  }  }
- SetMode(ID1,SERVO,0,1023);        //servo mode with angle limits of 
- SetMode(ID2,SERVO,0,1023);        //0 to 300(1023). 
  
  while(true){  while(true){
lego_dynamixel_control_xl320.txt · Last modified: 2019/06/06 23:03 by ntorresreyes