summaryrefslogtreecommitdiff
path: root/common/accel-sigmoid.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/accel-sigmoid.hpp')
-rw-r--r--common/accel-sigmoid.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/accel-sigmoid.hpp b/common/accel-sigmoid.hpp
index 5bbe58f..dc2066d 100644
--- a/common/accel-sigmoid.hpp
+++ b/common/accel-sigmoid.hpp
@@ -19,7 +19,7 @@ namespace rawaccel {
}
inline double accelerate(double speed) const {
- //f(x) = k/(1+e^(-m(c-x)))
+ //f(x) = k/(1+e^(-m(x-c)))
return limit / (exp(-speed_coeff * (speed - midpoint)) + 1);
}