From 94014927d7e5b28e0c13af20eba4ada618a988f2 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 25 Apr 2009 06:24:34 +0200 Subject: [PATCH] lift: added pusher endswitch histeresis --- src/eb_lift_09/main.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/eb_lift_09/main.c b/src/eb_lift_09/main.c index 823590ca..397fe818 100644 --- a/src/eb_lift_09/main.c +++ b/src/eb_lift_09/main.c @@ -299,7 +299,20 @@ int main(void){ fsm_lift.switch_front = (0 != (IO1PIN & (1< 10) { + counter=10; + fsm_pusher.switch_front = true; + } + if (counter < 0) { + fsm_pusher.switch_front = false; + counter = 0; + } + } fsm_pusher.switch_back = (0 != (IO1PIN & (1<