diff options
| author | a1xd <[email protected]> | 2021-04-01 19:40:19 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-04-01 19:40:19 -0400 |
| commit | 31ffabf6f32ae14b6e2f6ce33763bf4ef1bff809 (patch) | |
| tree | c9ac01b2844f44f586d99a8f276cb8d890c68bf9 /common/accel-union.hpp | |
| parent | driver - apply accel disregarding num packets (diff) | |
| download | rawaccel-31ffabf6f32ae14b6e2f6ce33763bf4ef1bff809.tar.xz rawaccel-31ffabf6f32ae14b6e2f6ce33763bf4ef1bff809.zip | |
make weights work in by component mode
domain weights now applied under inf norm
range weights now applied when equal
Diffstat (limited to 'common/accel-union.hpp')
| -rw-r--r-- | common/accel-union.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/accel-union.hpp b/common/accel-union.hpp index c63a9cc..7a6b173 100644 --- a/common/accel-union.hpp +++ b/common/accel-union.hpp @@ -95,10 +95,10 @@ namespace rawaccel { }, *this); } - double apply(double speed) const + double apply(double speed, double weight = 1) const { return visit_accel([=](auto&& impl) { - return impl(speed); + return apply_weighted(impl, speed, weight); }, *this); } |