Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

C++ for bioloid

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
19 postsPage 2 of 21, 2
19 postsPage 2 of 21, 2

Re: Make file

Post by acy.stapp » Tue Sep 04, 2007 9:10 pm

Post by acy.stapp
Tue Sep 04, 2007 9:10 pm

ryann2k1 wrote:Hi acy.stapp,
It seems all the library from the company (dynamixel.h) need to be reworked.
Once I try to fix TxDstring, than all errors pop up... writebyte, writeword, all functions need to be fixed.
Which dynamixel library do you use?
I thought it was easy , just add several lines in the makefile... :(
any idea?
Thank you...

cheers,

ryann2k1


I don't have dynamixel.h, where did you find that? I've started with the example code from the CD that came with the bioloid and worked from that and the PDF manuals for the AX-12.

You can try fixing TxDString by making an inline wrapper that converts a const char* to a byte. Add this to your code (leave the existing TxDString).

void TxDString(char const * textLine) { TxDString((byte *)textLine); }

You can also try changing the makefile to alter the default char type to be unsigned.
ryann2k1 wrote:Hi acy.stapp,
It seems all the library from the company (dynamixel.h) need to be reworked.
Once I try to fix TxDstring, than all errors pop up... writebyte, writeword, all functions need to be fixed.
Which dynamixel library do you use?
I thought it was easy , just add several lines in the makefile... :(
any idea?
Thank you...

cheers,

ryann2k1


I don't have dynamixel.h, where did you find that? I've started with the example code from the CD that came with the bioloid and worked from that and the PDF manuals for the AX-12.

You can try fixing TxDString by making an inline wrapper that converts a const char* to a byte. Add this to your code (leave the existing TxDString).

void TxDString(char const * textLine) { TxDString((byte *)textLine); }

You can also try changing the makefile to alter the default char type to be unsigned.
acy.stapp
Robot Builder
Robot Builder
Posts: 14
Joined: Sat Aug 25, 2007 5:25 pm

CPP

Post by ryann2k1 » Wed Sep 05, 2007 12:43 pm

Post by ryann2k1
Wed Sep 05, 2007 12:43 pm

Hi,
We have an expert kit and it comes with two cds.All functions in the Example.c are declared in the dynamixel.h and dynamixel.lib which are available in the second cd of the expert kit.
That's why all warnings pop up. There are some features in the expert kit which does not exist in the Example.c, for example, zigbee and wireless camera.
Any suggestion?

cheers,

ryann2k1
Hi,
We have an expert kit and it comes with two cds.All functions in the Example.c are declared in the dynamixel.h and dynamixel.lib which are available in the second cd of the expert kit.
That's why all warnings pop up. There are some features in the expert kit which does not exist in the Example.c, for example, zigbee and wireless camera.
Any suggestion?

cheers,

ryann2k1
ryann2k1
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 154
Joined: Thu Nov 16, 2006 1:00 am

Post by siempre.aprendiendo » Wed Sep 05, 2007 7:31 pm

Post by siempre.aprendiendo
Wed Sep 05, 2007 7:31 pm

Sorry, I have only the Comprehensive kit. The example that I have sent some messages ago works ok but it's based in the comprehensive example.c
Sorry, I have only the Comprehensive kit. The example that I have sent some messages ago works ok but it's based in the comprehensive example.c
siempre.aprendiendo
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 559
Joined: Wed Aug 08, 2007 9:13 pm
Location: Barcelona

CPP

Post by ryann2k1 » Thu Sep 06, 2007 7:28 am

Post by ryann2k1
Thu Sep 06, 2007 7:28 am

No worries.
Thank you anyway for sharing... :D maybe i might try the one using example.c

cheers,

ryann2k1
No worries.
Thank you anyway for sharing... :D maybe i might try the one using example.c

cheers,

ryann2k1
ryann2k1
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 154
Joined: Thu Nov 16, 2006 1:00 am

Previous
19 postsPage 2 of 21, 2
19 postsPage 2 of 21, 2