STMBL pseudo absolute resolver behaviour

More
3 years 1 month ago #280406 by andypugh
And, I guess that the Python HAL component, once it has done the calcs, could automatically issue the home-all command:

linuxcnc.org/docs/stable/html/config/pyt...command_code_methods
The following user(s) said Thank You: Freak

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago - 3 years 1 month ago #280415 by Freak
Yes I'm aware of the homing setup for absolute encoders, thanks, for now I've been able to run your component, now I'm trying to check if it works correctly. After I want to try using the hal.pin.joint_pos_fb and see if it can work, so making the pseudo_abs_encoder.var not necessary.
Last edit: 3 years 1 month ago by Freak.

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #280482 by Freak
The component is not working well because the stmbl's don't reset the internal position when linuxcnc closes, so I added the following:

[code]
p = h
p, _ = math.modf(p / s)
p = p * s
[\code]

So if the resolver shows more than one turn, then I take only the angle information.
I'll try now to use the position.txt

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #281595 by Freak
Hi, here is the working component for the stmbl with a resolver.
I tested and since now it's working very well.
I had to replace the angle correction logic based on the angle quadrants as implemented in the stmbl.

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #288373 by virencq
Hi, would you mind to share STMBL updated stuff!

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #289105 by Freak
Hi, do you mean the python script for the pseudo absolute resolver?

Please Log in or Create an account to join the conversation.

Time to create page: 0.287 seconds
Powered by Kunena Forum