From 9ecf83187cd655c55c33a25f19de44ca8e67ac59 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 12 May 2010 16:52:15 +0200 Subject: digital/mimot/src/dirty: set speed to zero when blocking --- digital/mimot/src/dirty/aux.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'digital') 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; -- cgit v1.2.3