Open Ilderi opened 2 months ago
Right now timings for servo control are hard coded but hobby servos aren't a precise devices and their set angle for specified input pulse may vary.
For example, with default settings from marlin:
class Servo { static const int MIN_ANGLE = 0, MAX_ANGLE = 270, MIN_PULSE_WIDTH = 544, // Shortest pulse sent to a servo MAX_PULSE_WIDTH = 2400, // Longest pulse sent to a servo TAU_MSEC = 20, TAU_USEC = (TAU_MSEC * 1000), MAX_COMPARE = _BV(16) - 1; // 65535
My servo doesn't do full 270 degree rotation with those timings:
But if i change value of MAX_PULSE_WIDTH parameter to 2500 it works properly.
MAX_PULSE_WIDTH
No response
Make servo timings editable in configuration_adv file.
Right now my workaround is to change this default value but if someone has more than one servo that won't do the job.
Is your feature request related to a problem? Please describe.
Right now timings for servo control are hard coded but hobby servos aren't a precise devices and their set angle for specified input pulse may vary.
For example, with default settings from marlin:
My servo doesn't do full 270 degree rotation with those timings:
But if i change value of
MAX_PULSE_WIDTH
parameter to 2500 it works properly.Are you looking for hardware support?
No response
Describe the feature you want
Make servo timings editable in configuration_adv file.
Additional context
No response