Skip to content

Commit 7a247d1

Browse files
committed
Fixing constant force filter
1 parent 77b2f97 commit 7a247d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Firmware/FFBoard/Inc/constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
static const uint8_t SW_VERSION_INT[3] = {1,8,6}; // Version as array. 8 bit each!
14+
static const uint8_t SW_VERSION_INT[3] = {1,8,7}; // Version as array. 8 bit each!
1515

1616
#define MAX_AXIS 2 // ONLY USE 2 for now else screws HID Reports
1717

Firmware/FFBoard/Src/EffectsCalculator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ int32_t EffectsCalculator::calcComponentForce(FFB_Effect *effect, int32_t forceV
331331
// Optional filtering to reduce spikes
332332
if (cfFilter_f < calcfrequency / 2 && cfFilter_f != 0 )
333333
{
334-
result_torque = effect->filter[con_idx]->process(forceVector);
334+
forceVector = effect->filter[con_idx]->process(forceVector);
335335
}
336336
}
337337
case FFB_EFFECT_RAMP:

0 commit comments

Comments
 (0)