Can someo0ne post Chapter 27 example code.
Please Log in or Create an account to join the conversation.
Emc2 works great for what I initially got it for "gantry CNC router" but I was hoping I could figure out how I could make it work for other projects. This is what I get with my latest attempts after switching to the Ubuntu version installed 2.3.
bot:~/Desktop$ comp --compile bipodkins.c
make -C /usr/src/linux-headers-2.6.24-16-rtai SUBDIRS=`pwd` CC=gcc V=0 -o /Module.symvers modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-rtai'
CC [M] /tmp/tmpe9-3z0/bipodkins.o
/tmp/tmpe9-3z0/bipodkins.c: In function ‘kinematicsForward’:
/tmp/tmpe9-3z0/bipodkins.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘double’
/tmp/tmpe9-3z0/bipodkins.c:24: error: ‘joints’ undeclared (first use in this function)
/tmp/tmpe9-3z0/bipodkins.c:24: error: (Each undeclared identifier is reported only once
/tmp/tmpe9-3z0/bipodkins.c:24: error: for each function it appears in.)
/tmp/tmpe9-3z0/bipodkins.c:26: error: ‘Bx’ undeclared (first use in this function)
/tmp/tmpe9-3z0/bipodkins.c:29: error: ‘pos’ undeclared (first use in this function)
/tmp/tmpe9-3z0/bipodkins.c: In function ‘kinematicsInverse’:
/tmp/tmpe9-3z0/bipodkins.c:40: error: ‘pos’ undeclared (first use in this function)
/tmp/tmpe9-3z0/bipodkins.c:43: error: ‘Bx’ undeclared (first use in this function)
/tmp/tmpe9-3z0/bipodkins.c: At top level:
/tmp/tmpe9-3z0/bipodkins.c:75: error: redefinition of ‘kinematicsHome’
/tmp/tmpe9-3z0/bipodkins.c:50: error: previous definition of ‘kinematicsHome’ was here
/tmp/tmpe9-3z0/bipodkins.c: In function ‘kinematicsHome’:
/tmp/tmpe9-3z0/bipodkins.c:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
/tmp/tmpe9-3z0/bipodkins.c:76: warning: no return statement in function returning non-void
make[2]: *** [/tmp/tmpe9-3z0/bipodkins.o] Error 1
make[1]: *** [_module_/tmp/tmpe9-3z0] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-rtai'
make: *** [modules] Error 2
Am I at least getting close?
Thanks for trying to help but I think I need some other information to understand what I need to do "c programing language and more?", I don't really know today.
Please Log in or Create an account to join the conversation.
I have tried looking at others but still have no idea what I need to change or what is missing, should i learn C to understand this? I have no idea at this point.
Emc2 works great for what I initially got it for "gantry CNC router" but I was hoping I could figure out how I could make it work for other projects. This is what I get with my latest attempts after switching to the Ubuntu version installed 2.3.
Am I at least getting close?
Thanks for trying to help but I think I need some other information to understand what I need to do "c programing language and more?", I don't really know today.
What are you trying to do?
John
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
A bipod sounds very difficult to me. How do you plan on balancing it?
I guess you will need to understand enough C to be able to modify at least the tripod kins... You might start with that one and only change one thing at a time...
John
Please Log in or Create an account to join the conversation.
- step4linux
- Offline
- Elite Member
- Posts: 163
- Thank you received: 5
Did you follow my suggestion to compile an existing kinematics first ?
e.g. copy trivkins.c and kinematics.h to a working directory, open a terminal there and issue "sudo comp --compile trivkins.c"
I assume you must use sudo with comp.
Gerd
Please Log in or Create an account to join the conversation.