Skip to content

Add a low pass filter to common libraries #10

@Roozki

Description

@Roozki

We currently use 2 joysticks to control our arm (each with 3 potentiometers). They work well, but we are not really filtering or processing the data in any way. This is a bit worrisome, and we'd have better control filtering their signals.

In any case, having a ready-to-go filter to include in our firmware is desirable.

For the joysticks, we want a low-pass filter. Something that filters out big jumps in the data, but keeps the slower-changing inputs. For this a low-pass FIR filter is probably all we need.

There's a lot of low pass filters out there, but a single order FIR will work for the arm control panel joysticks. They cost a lot computation-wise, but effective.

What done looks like:

An FIR filter function, taking in a struct. (a class would work too, although just a function might be more compatible with arduino). Including test coverage (might be the hardest part, injecting data and detecting a smooth signal)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions