summaryrefslogtreecommitdiff
path: root/common/accel-union.hpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-04-01 19:40:19 -0400
committera1xd <[email protected]>2021-04-01 19:40:19 -0400
commit31ffabf6f32ae14b6e2f6ce33763bf4ef1bff809 (patch)
treec9ac01b2844f44f586d99a8f276cb8d890c68bf9 /common/accel-union.hpp
parentdriver - apply accel disregarding num packets (diff)
downloadrawaccel-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.hpp4
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);
}