123
Dependencies: 3W_8Dir_p2pcontrol mbed
Fork of DXL_SDK_For_F446RE by
Diff: dynamixel.cpp
- Revision:
- 3:e2e9064c668d
- Parent:
- 0:bf4774b25188
- Child:
- 4:44560391db99
diff -r 8bede713ce52 -r e2e9064c668d dynamixel.cpp --- a/dynamixel.cpp Wed Feb 08 11:24:07 2017 +0800 +++ b/dynamixel.cpp Wed Feb 08 12:26:30 2017 +0800 @@ -363,7 +363,7 @@ dxl_txrx_packet(); } -int syncWrite_16bit(int start_addr, int data_length, int *param, int param_length) // WORD(16bit) syncwrite() for DXL stanley +int syncWrite_u16base(short int start_addr, short int data_length, short int *param, short int param_length) // WORD(16bit) syncwrite() for DXL stanley { while(giBusUsing); @@ -395,8 +395,13 @@ k++; } } + + gbInstructionPacket[LENGTH] = OneRawByte*slaveNum+4; - gbInstructionPacket[LENGTH] = OneRawByte*slaveNum+4; + //for(int i=0;i<50;i++) + // pc.printf("gbInstructionPacket[%d]=%x\n",i,gbInstructionPacket[i]);//stanley test + + dxl_txrx_packet(); return 0;