Use of wsum in axis selection for MPG

More
24 Jul 2016 22:12 #77942 by schmidtmotorworks
I have a 3 axis setup using the following code to select the axis to be controlled by the MPG
(sorry code editor seems to be broken)
I am working to add a 4th and 5th axis but don't understand how wsum_sizes works.

<code>
loadrt weighted_sum wsum_sizes=5,3
addf process_wsums servo-thread

net axis-select-0 wsum.1.bit.0.in <= hm2_5i23.0.7i64.0.0.digin.09.in
net axis-select-1 wsum.1.bit.1.in <= hm2_5i23.0.7i64.0.0.digin.10.in
net axis-select-2 wsum.1.bit.2.in <= hm2_5i23.0.7i64.0.0.digin.11.in
</code>

I am working to expand to 5 axis.
To set up wsum for 5 axis, do I edit

wsum_sizes=5,3

to

wsum_sizes=5,5

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

More
25 Jul 2016 01:05 #77955 by schmidtmotorworks
Update,

I was able to determine using Hal Meter on axis-selected that it was working OK.

I didn't understand how wsum worked.

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

More
25 Jul 2016 11:51 #77972 by BigJohnT

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

Time to create page: 0.056 seconds
Powered by Kunena Forum