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.
Dependents: RoboticArm DXL_SDK_Porting_Test
Revision 5:edccfcb47ab8, committed 2017-02-10
- Comitter:
- stanley1228
- Date:
- Fri Feb 10 22:55:30 2017 +0800
- Parent:
- 4:44560391db99
- Commit message:
- 1.Add read pos
2.Add Index_Axis gMapAxisNo gMapAxisID
Changed in this revision
| dynamixel.cpp | Show annotated file Show diff for this revision Revisions of this file |
| dynamixel.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/dynamixel.cpp Wed Feb 08 15:49:35 2017 +0800
+++ b/dynamixel.cpp Fri Feb 10 22:55:30 2017 +0800
@@ -363,7 +363,7 @@
dxl_txrx_packet();
}
-int syncWrite_u16base(short int start_addr, short int data_length, short int *param, short int param_length) // WORD(16bit) syncwrite() for DXL stanley
+int syncWrite_u16base(unsigned short int start_addr, unsigned short int data_length, unsigned short int *param, unsigned short int param_length) // WORD(16bit) syncwrite() for DXL stanley
{
while(giBusUsing);
--- a/dynamixel.h Wed Feb 08 15:49:35 2017 +0800 +++ b/dynamixel.h Fri Feb 10 22:55:30 2017 +0800 @@ -93,7 +93,7 @@ void dxl_write_byte( int id, int address, int value ); int dxl_read_word( short int id, short int address ); void dxl_write_word( short int id, short int address, short int value ); -int syncWrite_u16base(short int start_addr, short int data_length, short int *param, short int param_length); // WORD(16bit) syncwrite() for DXL +int syncWrite_u16base(unsigned short int start_addr, unsigned short int data_length, unsigned short int *param, unsigned short int param_length); // WORD(16bit) syncwrite() for DXL void setPosition(int ServoID, int Position, int Speed);//stanley