Skip to content

stepper rewrite merge to main branch#11

Open
saucesaft wants to merge 31 commits intomainfrom
stepper_rewrite
Open

stepper rewrite merge to main branch#11
saucesaft wants to merge 31 commits intomainfrom
stepper_rewrite

Conversation

@saucesaft
Copy link
Contributor

No description provided.

@saucesaft saucesaft requested a review from romi2002 March 19, 2024 23:42
steering_stepper.config.direction_port = STP1_DIR_GPIO_Port;
steering_stepper.config.invert = false;
steering_stepper.config.enable_encoder_correction = true;
steering_stepper.config.enable_soft_limit = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hay que volver a habilitar el soft limit, para que no le podamos mandar un valor demasiado grande (y romper el mecanismo).
Podemos arreglarlo, o simplificarlo y hacer que solo se le aplica al setpoint:
if setpoint > soft_limit: setpoint = soft_limit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants