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
Copy Markdown
Contributor

No description provided.

@saucesaft saucesaft requested a review from romi2002 March 19, 2024 23:42
Comment thread SteeringVanttec/Core/Src/stepper_task.c Outdated
Comment thread SteeringVanttec/Core/Src/main.c Outdated
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
Copy Markdown
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

Comment thread SteeringVanttec/Core/Inc/stm32l4xx_it.h
Comment thread SteeringVanttec/Core/Src/main.c Outdated
Comment thread SteeringVanttec/Core/Src/main.c Outdated
Comment thread SteeringVanttec/Core/Src/main.c Outdated
Comment thread SteeringVanttec/Core/Src/main.c
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