Stepper configs have suboptimal P term setting

More
10 years 8 months ago #69800 by PCW
PnPConf created stepper configs use a initial P value of 50

This is much too low for stepper configs and will result in following errors (50 is ok as a starting point for servos)

For stepper configs, P should be 1/Servo-thread-period so P=1000 for the standard 1ms servo thread period

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

More
10 years 8 months ago #69806 by cmorley
Ok I will see what I can do

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

More
10 years 8 months ago #69807 by cmorley
I pushed a better fix into 2.7

steppers get a calculated P
servos get 50

This could still be screwed up if the user set the axis as a servo then changes to a stepper but its a little better.
Thanks for the heads up

Chris M

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

More
10 years 8 months ago - 10 years 8 months ago #69808 by PCW
I think you may have the calculation wrong,
P should be 1/ servo-period-in-seconds, not servo period/1000

so P=1000 at 1 ms, 500 at 2 ms, 4000 at 250 usec

servo-period-in-ns/1000 is correct for 1 ms but wrong everywhere else
Last edit: 10 years 8 months ago by PCW.

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

More
10 years 8 months ago #69822 by cmorley
damn ok ill fix :)

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

More
10 years 8 months ago #69823 by cmorley
ok pushed a fix again.
Thanks for checking!

Chris M

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

Moderators: cmorley
Time to create page: 0.218 seconds
Powered by Kunena Forum