From 8ff6f7312cba948a56997b36a62b354292f9969e Mon Sep 17 00:00:00 2001 From: crinq Date: Mon, 27 May 2019 13:07:40 +0200 Subject: [PATCH] ramp en fix --- shared/comps/ramp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/comps/ramp.c b/shared/comps/ramp.c index 783a4b6d..50f0d1ca 100644 --- a/shared/comps/ramp.c +++ b/shared/comps/ramp.c @@ -50,7 +50,7 @@ static void rt_func(float period, void *ctx_ptr, hal_pin_inst_t *pin_ptr) { PIN(at_speed) = 0; } - if(ABS(PIN(vel_cmd)) > 0.1){ + if(ABS(PIN(vel_cmd)) > 0.01 | ABS(PIN(vel_ext_cmd)) > 0.01){ PIN(en_out) = 1; } else{