Stepper API: Rename motion control related functions #81789
Labels
area: Stepper
Enhancement
Changes/Updates/Additions to existing features
RFC
Request For Comments: want input from the community
Introduction
Problem description
Stepper API in current state comprises of following functions for motion control:
Proposed change
These function names could become more intuitive if renamed as following:
stepper_move
->stepper_move_by
for the number of relative steps to move.stepper_set_target_position
->stepper_move_to
for the absolute position to be reached.stepper_set_actual_position
->stepper_set_reference_position
for the the reference position from which the steps are to be counted.stepper_enable_constant_velocity_mode
->stepper_run
for the brevity of the actual function.Detailed RFC
Proposed change (Detailed)
Following files will have to be refactored:
API:
move_to
,move_by
andrun
shall be non-blocking operationsDrivers:
Docs:
Tests:
Entry in migration guide:
Dependencies
None
Concerns and Unresolved Questions
Alternatives
Tasks
The text was updated successfully, but these errors were encountered: