From f3d040af69cdeab3854672a408eec38dee2c063f Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 18 Jun 2012 06:40:23 +0000 Subject: [PATCH] Slow Down / Slow Up was 30 seconds long instead of 7.5 seconds (thanks Gabriel again!) --- src/open9x.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index 4a488825b..b651d3526 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -1855,8 +1855,8 @@ void perOut() int32_t rate = (int32_t)DEL_MULT*2048*100; if(md->weight) rate /= abs(md->weight); - act[i] = (diff>0) ? ((md->speedUp>0) ? act[i]+(rate)/((int16_t)200*md->speedUp) : (int32_t)v*DEL_MULT) : - ((md->speedDown>0) ? act[i]-(rate)/((int16_t)200*md->speedDown) : (int32_t)v*DEL_MULT) ; + act[i] = (diff>0) ? ((md->speedUp>0) ? act[i]+(rate)/((int16_t)50*md->speedUp) : (int32_t)v*DEL_MULT) : + ((md->speedDown>0) ? act[i]-(rate)/((int16_t)50*md->speedDown) : (int32_t)v*DEL_MULT) ; } {