- Posts: 9
- Thank you received: 0
Actual position and Commanded position differ, using cia402 [SOLVED]
1 year 5 months ago #328790
by low-blip
Replied by low-blip on topic Actual position and Commanded position differ, using cia402
Oh thanks! you're right that halcompile is having some problem, userkins.c is unchanged after I run
. There's nothing in the terminal that hints at it not working.
I've attached the userkins.comp file here
Code:
sudo halcompile --install userkins.comp
Compiling realtime userkins.c
Linking userkins.so
cp userkins.so /usr/lib/linuxcnc/modules/
I've attached the userkins.comp file here
Please Log in to join the conversation.
1 year 5 months ago #328799
by Aciera
Replied by Aciera on topic Actual position and Commanded position differ, using cia402
I think you are being confused by an old version of 'userkins.c'. Note that
will not create a 'userkins.c' file at all, it will directly create a 'userkins.so' and copy that to the appropriate folder.
linuxcnc.org/docs/html/man/man1/halcompile.1.html
If things are working after
'sudo halcompile --install userkins.comp'
then you can delete the 'userkins.c' file.
Code:
sudo halcompile --install userkins.comp
will not create a 'userkins.c' file at all, it will directly create a 'userkins.so' and copy that to the appropriate folder.
linuxcnc.org/docs/html/man/man1/halcompile.1.html
If things are working after
'sudo halcompile --install userkins.comp'
then you can delete the 'userkins.c' file.
Please Log in to join the conversation.
1 year 5 months ago #328800
by andypugh
Replied by andypugh on topic Actual position and Commanded position differ, using cia402
I don't know why there is a 22.2222 factor on your rotary axes, it feels like that constant factor could be in the INI scaling.
In fact your userkins appears to basically be a trivial kinematics? Why not use trivkins?
Maybe you are running a run-in-place system, so LinuxCNC is running from linuxcnc-dev but halcompile is placing the compiled kins in the root structure?
(But that wouldn't explain why edirting the C and recompiling works...)
In fact your userkins appears to basically be a trivial kinematics? Why not use trivkins?
Maybe you are running a run-in-place system, so LinuxCNC is running from linuxcnc-dev but halcompile is placing the compiled kins in the root structure?
(But that wouldn't explain why edirting the C and recompiling works...)
Please Log in to join the conversation.
1 year 5 months ago #328815
by low-blip
Replied by low-blip on topic Actual position and Commanded position differ, using cia402
I am so confused. the setup does still works after I deleted userkins.c, so the problem must have come from the old userkins.so. According to our git history, userkins.comp never changed, and we did run halcompile when we set up the project, so I don't see why userkins.so changed. Not important, maybe someone accidentally copied an older version from somewhere.
As for the other issues with userkins, I don't know, this is how I received the configuration. I'm slowly trying to figure things out.
As for the other issues with userkins, I don't know, this is how I received the configuration. I'm slowly trying to figure things out.
Please Log in to join the conversation.
1 year 5 months ago #328816
by low-blip
Replied by low-blip on topic Actual position and Commanded position differ, using cia402
I've learned C for a semester in university, didn't get it at all. It was so not nice to me.
I do program Arduinoes these days, because the other colleagues don't want to, but isn't that C++? Any way I hate it too
When I need C I use Rust instead, it's a pain too but at least I can usually figure out where I made a mistake. Which is usually forgetting the ';'
I do program Arduinoes these days, because the other colleagues don't want to, but isn't that C++? Any way I hate it too
When I need C I use Rust instead, it's a pain too but at least I can usually figure out where I made a mistake. Which is usually forgetting the ';'
Please Log in to join the conversation.
Time to create page: 0.237 seconds
