- Posts: 238
- Thank you received: 5
TCP 5-axis kinematics
- 3D-Master
- Offline
- Elite Member
-
You will need to retrofit the "switchkins" branch github.com/rushabhGH/linuxcnc/tree/switchKins to your local code, all changed files.
can this be done with a Terminal? i am sorry but i have never done something like this and dont want do brick something.
I have seen that switchKins is for XYZAC machines, is there an easy way to change it to XYZBC like changing "JA" to "JB" and "a_rad" to"b_rad" or is the calculation completely different?
Please Log in or Create an account to join the conversation.
- plopes9000
- Offline
- Premium Member
-
- Posts: 87
- Thank you received: 18
There could be an easier way with github, but it was fine this way, not too many files and changes.
Regarding the AC vs BC, you can use the code from xyzbc-trt-kins.c and replace the switchkins.c code in the functions xyzabKinematicsForward and xyzabKinematicsInverse - yes the names already match ab ...
Since I have an AC setup, my updated switchkins.c file uses the AC code with my changes to allow TCP on a defined origin.
But if you use the BC code, I think its easy to extrapolate from my changes to the AC code and apply them to the AB code.
Please Log in or Create an account to join the conversation.
- 3D-Master
- Offline
- Elite Member
-
- Posts: 238
- Thank you received: 5
Please Log in or Create an account to join the conversation.
- 3D-Master
- Offline
- Elite Member
-
- Posts: 238
- Thank you received: 5
on github it says src/emc/motion/motion.h but on my computer it is at /usr/include/linuxcnc/motion.h. how can i be sure that it is the correct file except looking at the code in github?
files i was able to find:
motion.h
kinematics.h
canon.h
emc.hh
emc_nml.hh
files i was not able to find:
control.c
command.c
Makefile
gcodemodule.cc
interp_array.cc
interp_check.cc
interp_convert.cc
interp_execute.cc
interp_internal.hh
interp_setup.cc
rs274ngc_interp.hh
rs274ngc_pre.cc
rs274ngc_return.hh
saicanon.cc
emccanon.cc
emctaskmain.cc
taskintf.cc
tp.c
Please Log in or Create an account to join the conversation.
- jsskangas
- Offline
- Premium Member
-
- Posts: 144
- Thank you received: 9
There is not yet switchKins implemented in my solution.
I will do a complete packet for xyzbc machine with switchKins as soon as I have some time.
Im hoping we will get this switching TCP on/off functionality out in next linuxcnc release?
When is next release date?
Please Log in or Create an account to join the conversation.
- plopes9000
- Offline
- Premium Member
-
- Posts: 87
- Thank you received: 18
3D-Master wrote: by using the find command (find / -type f -name motion.h) i was able to find the file motion.h but at a completely different place.
on github it says src/emc/motion/motion.h but on my computer it is at /usr/include/linuxcnc/motion.h. how can i be sure that it is the correct file except looking at the code in github?
That means you don't have the code installed - see linuxcnc.org/docs/master/html/code/building-linuxcnc.html on how to install it for the purpose of building it.
so for example:
Now all the master branch code is locally available.
you can do the same to the switchkins branch:
to actually build it you need to do:
> cd linuxcnc-master-branch/src
> ./autogen.sh
> ./configure --with-realtime=uspace in my case ./configure --with-realtime=/usr/include/rtai --enable-non-distributable=yes
> make
then
> sudo make setuid
> source ../scripts/rip-environment
> runtests
of course you then need to apply the switchkin changes.
Please Log in or Create an account to join the conversation.