summaryrefslogtreecommitdiffhomepage
path: root/digital
diff options
context:
space:
mode:
Diffstat (limited to 'digital')
-rw-r--r--digital/mimot/src/dirty/aux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/digital/mimot/src/dirty/aux.c b/digital/mimot/src/dirty/aux.c
index bf43795b..e00e2c08 100644
--- a/digital/mimot/src/dirty/aux.c
+++ b/digital/mimot/src/dirty/aux.c
@@ -213,6 +213,8 @@ aux_traj_find_limit (struct aux_t *aux)
> aux->speed->pos->blocked_counter_limit)
{
pos_reset (aux->speed->pos);
+ aux->speed->cons = 0;
+ aux->speed->cur = 0;
aux->state->variant = 1;
pwm_set (aux->pwm, 0);
aux->traj_mode = AUX_TRAJ_FIND_LIMIT_WAIT;