Program made to control Dynamixel servos type AX-12W. Works perfectly in the lpc1768
Revision 2:342f5327a1e0, committed 2019-03-01
- Comitter:
- papaco
- Date:
- Fri Mar 01 18:30:30 2019 +0000
- Parent:
- 0:e377b44007fb
- Commit message:
- Updated on 3/1/19
Changed in this revision
DynamixelAX12.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/DynamixelAX12.cpp Tue May 03 01:27:37 2016 +0000 +++ b/DynamixelAX12.cpp Fri Mar 01 18:30:30 2019 +0000 @@ -1,7 +1,7 @@ #include "DynamixelAX12.h" #include "mbed.h" -Dynamixel::Dynamixel(void):serialPort(p9,p10),directionPin(p11,0){ +Dynamixel::Dynamixel(void):serialPort(p13,p14),directionPin(p12,0){ serialPort.baud(1000000); position=0; velocity=0; @@ -11,7 +11,7 @@ ID=0xFE; }//Builder0 -Dynamixel::Dynamixel(unsigned int NewID):serialPort(p9,p10),directionPin(p11,0){ +Dynamixel::Dynamixel(unsigned int NewID):serialPort(p13,p14),directionPin(p12,0){ serialPort.baud(1000000); position=0; velocity=0;