- Posts: 107
- Thank you received: 0
Use of wsum in axis selection for MPG
- schmidtmotorworks
- Topic Author
- Offline
- Premium Member
-
Less
More
10 years 3 months ago #77942
by schmidtmotorworks
Use of wsum in axis selection for MPG was created 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
(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 to join the conversation.
- schmidtmotorworks
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 107
- Thank you received: 0
10 years 3 months ago #77955
by schmidtmotorworks
Replied by schmidtmotorworks on topic Use of wsum in axis selection for MPG
Update,
I was able to determine using Hal Meter on axis-selected that it was working OK.
I didn't understand how wsum worked.
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 to join the conversation.
10 years 3 months ago #77972
by BigJohnT
Replied by BigJohnT on topic Use of wsum in axis selection for MPG
Please Log in to join the conversation.
Time to create page: 0.079 seconds
