diff options
| author | a1xd <[email protected]> | 2020-09-04 00:17:55 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-04 00:17:55 -0400 |
| commit | 159abe32fa9e903e1ac0a2c758d64c4b8e152c3d (patch) | |
| tree | 2230e353985551a21a25b09bfacb89467b52d165 /common/accel-sigmoidgain.hpp | |
| parent | Merge pull request #18 from a1xd/write-delay (diff) | |
| parent | Add offset options to GUI, make gain options default (diff) | |
| download | rawaccel-159abe32fa9e903e1ac0a2c758d64c4b8e152c3d.tar.xz rawaccel-159abe32fa9e903e1ac0a2c758d64c4b8e152c3d.zip | |
Merge pull request #19 from JacobPalecki/gainOffset
Add gain offset & make gain options default
Diffstat (limited to 'common/accel-sigmoidgain.hpp')
| -rw-r--r-- | common/accel-sigmoidgain.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/accel-sigmoidgain.hpp b/common/accel-sigmoidgain.hpp index 99bb146..bed2f16 100644 --- a/common/accel-sigmoidgain.hpp +++ b/common/accel-sigmoidgain.hpp @@ -26,6 +26,7 @@ namespace rawaccel { return limit * ((log(additive_constant+exp(scaled_speed)) - integration_constant)/scaled_speed); } + inline double legacy_offset(double speed) const { return operator()(speed); } }; using accel_sigmoidgain = additive_accel<sigmoidgain_impl>; |